summaryrefslogtreecommitdiffhomepage
path: root/src/rlgl.c
diff options
context:
space:
mode:
authorraysan5 <[email protected]>2016-12-27 17:37:35 +0100
committerraysan5 <[email protected]>2016-12-27 17:37:35 +0100
commite7464d5fc376783912da9086a4bf49d2d5759135 (patch)
tree4146e30a8e3c143b4c5ff541e045bc915a8d1d5e /src/rlgl.c
parent3c91dc099dcee1457207c15c30da61c1b279c554 (diff)
downloadraylib-e7464d5fc376783912da9086a4bf49d2d5759135.tar.gz
raylib-e7464d5fc376783912da9086a4bf49d2d5759135.zip
Review some formatting and naming
- Renamed WritePNG() to SavePNG() for consistency with other file loading functions - Renamed WriteBitmap() to SaveBMP() for consistency with other file loading functions - Redesigned SaveBMP() to use stb_image_write
Diffstat (limited to 'src/rlgl.c')
-rw-r--r--src/rlgl.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/rlgl.c b/src/rlgl.c
index ae28d9b6..cb1ac709 100644
--- a/src/rlgl.c
+++ b/src/rlgl.c
@@ -192,7 +192,7 @@
//----------------------------------------------------------------------------------
// Dynamic vertex buffers (position + texcoords + colors + indices arrays)
-typedef struct {
+typedef struct DynamicBuffer {
int vCounter; // vertex position counter to process (and draw) from full buffer
int tcCounter; // vertex texcoord counter to process (and draw) from full buffer
int cCounter; // vertex color counter to process (and draw) from full buffer
@@ -211,7 +211,7 @@ typedef struct {
// Draw call type
// NOTE: Used to track required draw-calls, organized by texture
-typedef struct {
+typedef struct DrawCall {
int vertexCount;
GLuint vaoId;
GLuint textureId;
@@ -226,7 +226,7 @@ typedef struct {
} DrawCall;
// Head-Mounted-Display device parameters
-typedef struct {
+typedef struct VrDeviceInfo {
int hResolution; // HMD horizontal resolution in pixels
int vResolution; // HMD vertical resolution in pixels
float hScreenSize; // HMD horizontal size in meters
@@ -240,7 +240,7 @@ typedef struct {
} VrDeviceInfo;
// VR Stereo rendering configuration for simulator
-typedef struct {
+typedef struct VrStereoConfig {
RenderTexture2D stereoFbo; // VR stereo rendering framebuffer
Shader distortionShader; // VR stereo rendering distortion shader
//Rectangle eyesViewport[2]; // VR stereo rendering eyes viewports