commit af09f255b9c8286c010cbe362c11cea1b6c88a78 parent 153913ae76921f76a171a76dc207b4829f087c3f Author: Michael Savage <mikejsavage@gmail.com> Date: Mon Oct 31 23:13:42 +0200 Better constant names Diffstat:
renderer.h | | | 8 | ++++---- |
diff --git a/renderer.h b/renderer.h @@ -40,12 +40,12 @@ enum BufferUsage { BUFFERUSAGE_STREAM, }; -#define MAX_TEXTURES 4 -#define MAX_UBS 4 +#define RENDERER_MAX_TEXTURES 4 +#define RENDERER_MAX_UBS 4 struct RenderState { - Texture textures[ MAX_TEXTURES ]; - UB ubs[ MAX_UBS ]; + Texture textures[ RENDERER_MAX_TEXTURES ]; + UB ubs[ RENDERER_MAX_UBS ]; Shader shader; DepthFunc depth_func; bool disable_depth_writes;