浏览代码

Review comments

pull/132/head
raysan5 8 年前
父节点
当前提交
11172118d1
共有 2 个文件被更改,包括 13 次插入13 次删除
  1. +5
    -6
      src/core.c
  2. +8
    -7
      src/rlgl.c

+ 5
- 6
src/core.c 查看文件

@ -181,11 +181,10 @@ static uint64_t baseTime; // Base time measure for hi-res timer
static bool windowShouldClose = false; // Flag to set window for closing static bool windowShouldClose = false; // Flag to set window for closing
#endif #endif
static unsigned int displayWidth, displayHeight; // Display width and height (monitor, device-screen, LCD, ...) // Display size-related data
static unsigned int displayWidth, displayHeight; // Display width and height (monitor, device-screen, LCD, ...)
static int screenWidth, screenHeight; // Screen width and height (used render area) static int screenWidth, screenHeight; // Screen width and height (used render area)
static int renderWidth, renderHeight; // Framebuffer width and height (render area) static int renderWidth, renderHeight; // Framebuffer width and height (render area, including black bars if required)
// NOTE: Framebuffer could include black bars
static int renderOffsetX = 0; // Offset X from render area (must be divided by 2) static int renderOffsetX = 0; // Offset X from render area (must be divided by 2)
static int renderOffsetY = 0; // Offset Y from render area (must be divided by 2) static int renderOffsetY = 0; // Offset Y from render area (must be divided by 2)
static bool fullscreen = false; // Fullscreen mode (useful only for PLATFORM_DESKTOP) static bool fullscreen = false; // Fullscreen mode (useful only for PLATFORM_DESKTOP)
@ -214,7 +213,7 @@ static bool cursorHidden; // Track if cursor is hidden
#endif #endif
static Vector2 mousePosition; // Mouse position on screen static Vector2 mousePosition; // Mouse position on screen
static Vector2 touchPosition[MAX_TOUCH_POINTS]; // Touch position on screen static Vector2 touchPosition[MAX_TOUCH_POINTS]; // Touch position on screen
#if defined(PLATFORM_DESKTOP) #if defined(PLATFORM_DESKTOP)
static char **dropFilesPath; // Store dropped files paths as strings static char **dropFilesPath; // Store dropped files paths as strings
@ -226,7 +225,7 @@ static double updateTime, drawTime; // Time measures for update and draw
static double frameTime; // Time measure for one frame static double frameTime; // Time measure for one frame
static double targetTime = 0.0; // Desired time for one frame, if 0 not applied static double targetTime = 0.0; // Desired time for one frame, if 0 not applied
static char configFlags = 0; // Configuration flags (bit based) static char configFlags = 0; // Configuration flags (bit based)
static bool showLogo = false; // Track if showing logo at init is enabled static bool showLogo = false; // Track if showing logo at init is enabled
//---------------------------------------------------------------------------------- //----------------------------------------------------------------------------------

+ 8
- 7
src/rlgl.c 查看文件

@ -257,9 +257,9 @@ static DrawMode currentDrawMode;
static float currentDepth = -1.0f; static float currentDepth = -1.0f;
static DynamicBuffer lines; static DynamicBuffer lines; // Default dynamic buffer for lines data
static DynamicBuffer triangles; static DynamicBuffer triangles; // Default dynamic buffer for triangles data
static DynamicBuffer quads; static DynamicBuffer quads; // Default dynamic buffer for quads data (used to draw textures)
// Default buffers draw calls // Default buffers draw calls
static DrawCall *draws; static DrawCall *draws;
@ -271,9 +271,10 @@ static int tempBufferCount = 0;
static bool useTempBuffer = false; static bool useTempBuffer = false;
// Shader Programs // Shader Programs
static Shader defaultShader; static Shader defaultShader; // Basic shader, support vertex color and diffuse texture
static Shader standardShader; // Lazy initialization when GetStandardShader() static Shader standardShader; // Shader with support for lighting and materials
static Shader currentShader; // By default, defaultShader // NOTE: Lazy initialization when GetStandardShader()
static Shader currentShader; // Shader to be used on rendering (by default, defaultShader)
static bool standardShaderLoaded = false; // Flag to track if standard shader has been loaded static bool standardShaderLoaded = false; // Flag to track if standard shader has been loaded
// Flags for supported extensions // Flags for supported extensions
@ -357,7 +358,7 @@ static void SetStereoView(int eye, Matrix matProjection, Matrix matModelView);
static void SetShaderLights(Shader shader); // Sets shader uniform values for lights array static void SetShaderLights(Shader shader); // Sets shader uniform values for lights array
static char *ReadTextFile(const char *fileName); static char *ReadTextFile(const char *fileName); // Read chars array from text file
#endif #endif
#if defined(RLGL_OCULUS_SUPPORT) #if defined(RLGL_OCULUS_SUPPORT)

||||||
x
 
000:0
正在加载...
取消
保存