Wise&mystical  1.0
Project about Europe
Loading...
Searching...
No Matches
rlgl.h File Reference
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  rlVertexBuffer
 
struct  rlDrawCall
 
struct  rlRenderBatch
 
struct  Matrix
 

Macros

#define RLGL_VERSION   "4.0"
 rlgl v4.0 - A multi-OpenGL abstraction layer with an immediate-mode style API More...
 
#define RLAPI
 
#define TRACELOG(level, ...)   (void)0
 
#define TRACELOGD(...)   (void)0
 
#define RL_MALLOC(sz)   malloc(sz)
 
#define RL_CALLOC(n, sz)   calloc(n,sz)
 
#define RL_REALLOC(n, sz)   realloc(n,sz)
 
#define RL_FREE(p)   free(p)
 
#define GRAPHICS_API_OPENGL_33
 
#define RLGL_RENDER_TEXTURES_HINT
 
#define RL_DEFAULT_BATCH_BUFFER_ELEMENTS   8192
 
#define RL_DEFAULT_BATCH_BUFFERS   1
 
#define RL_DEFAULT_BATCH_DRAWCALLS   256
 
#define RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS   4
 
#define RL_MAX_MATRIX_STACK_SIZE   32
 
#define RL_MAX_SHADER_LOCATIONS   32
 
#define RL_CULL_DISTANCE_NEAR   0.01
 
#define RL_CULL_DISTANCE_FAR   1000.0
 
#define RL_TEXTURE_WRAP_S   0x2802
 
#define RL_TEXTURE_WRAP_T   0x2803
 
#define RL_TEXTURE_MAG_FILTER   0x2800
 
#define RL_TEXTURE_MIN_FILTER   0x2801
 
#define RL_TEXTURE_FILTER_NEAREST   0x2600
 
#define RL_TEXTURE_FILTER_LINEAR   0x2601
 
#define RL_TEXTURE_FILTER_MIP_NEAREST   0x2700
 
#define RL_TEXTURE_FILTER_NEAREST_MIP_LINEAR   0x2702
 
#define RL_TEXTURE_FILTER_LINEAR_MIP_NEAREST   0x2701
 
#define RL_TEXTURE_FILTER_MIP_LINEAR   0x2703
 
#define RL_TEXTURE_FILTER_ANISOTROPIC   0x3000
 
#define RL_TEXTURE_WRAP_REPEAT   0x2901
 
#define RL_TEXTURE_WRAP_CLAMP   0x812F
 
#define RL_TEXTURE_WRAP_MIRROR_REPEAT   0x8370
 
#define RL_TEXTURE_WRAP_MIRROR_CLAMP   0x8742
 
#define RL_MODELVIEW   0x1700
 
#define RL_PROJECTION   0x1701
 
#define RL_TEXTURE   0x1702
 
#define RL_LINES   0x0001
 
#define RL_TRIANGLES   0x0004
 
#define RL_QUADS   0x0007
 
#define RL_UNSIGNED_BYTE   0x1401
 
#define RL_FLOAT   0x1406
 
#define RL_STREAM_DRAW   0x88E0
 
#define RL_STREAM_READ   0x88E1
 
#define RL_STREAM_COPY   0x88E2
 
#define RL_STATIC_DRAW   0x88E4
 
#define RL_STATIC_READ   0x88E5
 
#define RL_STATIC_COPY   0x88E6
 
#define RL_DYNAMIC_DRAW   0x88E8
 
#define RL_DYNAMIC_READ   0x88E9
 
#define RL_DYNAMIC_COPY   0x88EA
 
#define RL_FRAGMENT_SHADER   0x8B30
 
#define RL_VERTEX_SHADER   0x8B31
 
#define RL_COMPUTE_SHADER   0x91B9
 
#define RL_MATRIX_TYPE
 
#define RL_SHADER_LOC_MAP_DIFFUSE   RL_SHADER_LOC_MAP_ALBEDO
 
#define RL_SHADER_LOC_MAP_SPECULAR   RL_SHADER_LOC_MAP_METALNESS
 

Typedefs

typedef struct rlVertexBuffer rlVertexBuffer
 
typedef struct rlDrawCall rlDrawCall
 
typedef struct rlRenderBatch rlRenderBatch
 
typedef enum bool bool
 
typedef struct Matrix Matrix
 

Enumerations

enum  rlGlVersion {
  OPENGL_11 = 1 , OPENGL_21 , OPENGL_33 , OPENGL_43 ,
  OPENGL_ES_20
}
 
enum  rlFramebufferAttachType {
  RL_ATTACHMENT_COLOR_CHANNEL0 = 0 , RL_ATTACHMENT_COLOR_CHANNEL1 , RL_ATTACHMENT_COLOR_CHANNEL2 , RL_ATTACHMENT_COLOR_CHANNEL3 ,
  RL_ATTACHMENT_COLOR_CHANNEL4 , RL_ATTACHMENT_COLOR_CHANNEL5 , RL_ATTACHMENT_COLOR_CHANNEL6 , RL_ATTACHMENT_COLOR_CHANNEL7 ,
  RL_ATTACHMENT_DEPTH = 100 , RL_ATTACHMENT_STENCIL = 200
}
 
enum  rlFramebufferAttachTextureType {
  RL_ATTACHMENT_CUBEMAP_POSITIVE_X = 0 , RL_ATTACHMENT_CUBEMAP_NEGATIVE_X , RL_ATTACHMENT_CUBEMAP_POSITIVE_Y , RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y ,
  RL_ATTACHMENT_CUBEMAP_POSITIVE_Z , RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z , RL_ATTACHMENT_TEXTURE2D = 100 , RL_ATTACHMENT_RENDERBUFFER = 200
}
 
enum  bool {
  false , true , false , true ,
  false , true , false , true
}
 
enum  rlTraceLogLevel {
  RL_LOG_ALL = 0 , RL_LOG_TRACE , RL_LOG_DEBUG , RL_LOG_INFO ,
  RL_LOG_WARNING , RL_LOG_ERROR , RL_LOG_FATAL , RL_LOG_NONE
}
 
enum  rlPixelFormat {
  RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE = 1 , RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA , RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 , RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8 ,
  RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 , RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 , RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 , RL_PIXELFORMAT_UNCOMPRESSED_R32 ,
  RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 , RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 , RL_PIXELFORMAT_COMPRESSED_DXT1_RGB , RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA ,
  RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA , RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA , RL_PIXELFORMAT_COMPRESSED_ETC1_RGB , RL_PIXELFORMAT_COMPRESSED_ETC2_RGB ,
  RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA , RL_PIXELFORMAT_COMPRESSED_PVRT_RGB , RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA , RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA ,
  RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA
}
 
enum  rlTextureFilter {
  RL_TEXTURE_FILTER_POINT = 0 , RL_TEXTURE_FILTER_BILINEAR , RL_TEXTURE_FILTER_TRILINEAR , RL_TEXTURE_FILTER_ANISOTROPIC_4X ,
  RL_TEXTURE_FILTER_ANISOTROPIC_8X , RL_TEXTURE_FILTER_ANISOTROPIC_16X
}
 
enum  rlBlendMode {
  RL_BLEND_ALPHA = 0 , RL_BLEND_ADDITIVE , RL_BLEND_MULTIPLIED , RL_BLEND_ADD_COLORS ,
  RL_BLEND_SUBTRACT_COLORS , RL_BLEND_ALPHA_PREMUL , RL_BLEND_CUSTOM
}
 
enum  rlShaderLocationIndex {
  RL_SHADER_LOC_VERTEX_POSITION = 0 , RL_SHADER_LOC_VERTEX_TEXCOORD01 , RL_SHADER_LOC_VERTEX_TEXCOORD02 , RL_SHADER_LOC_VERTEX_NORMAL ,
  RL_SHADER_LOC_VERTEX_TANGENT , RL_SHADER_LOC_VERTEX_COLOR , RL_SHADER_LOC_MATRIX_MVP , RL_SHADER_LOC_MATRIX_VIEW ,
  RL_SHADER_LOC_MATRIX_PROJECTION , RL_SHADER_LOC_MATRIX_MODEL , RL_SHADER_LOC_MATRIX_NORMAL , RL_SHADER_LOC_VECTOR_VIEW ,
  RL_SHADER_LOC_COLOR_DIFFUSE , RL_SHADER_LOC_COLOR_SPECULAR , RL_SHADER_LOC_COLOR_AMBIENT , RL_SHADER_LOC_MAP_ALBEDO ,
  RL_SHADER_LOC_MAP_METALNESS , RL_SHADER_LOC_MAP_NORMAL , RL_SHADER_LOC_MAP_ROUGHNESS , RL_SHADER_LOC_MAP_OCCLUSION ,
  RL_SHADER_LOC_MAP_EMISSION , RL_SHADER_LOC_MAP_HEIGHT , RL_SHADER_LOC_MAP_CUBEMAP , RL_SHADER_LOC_MAP_IRRADIANCE ,
  RL_SHADER_LOC_MAP_PREFILTER , RL_SHADER_LOC_MAP_BRDF
}
 
enum  rlShaderUniformDataType {
  RL_SHADER_UNIFORM_FLOAT = 0 , RL_SHADER_UNIFORM_VEC2 , RL_SHADER_UNIFORM_VEC3 , RL_SHADER_UNIFORM_VEC4 ,
  RL_SHADER_UNIFORM_INT , RL_SHADER_UNIFORM_IVEC2 , RL_SHADER_UNIFORM_IVEC3 , RL_SHADER_UNIFORM_IVEC4 ,
  RL_SHADER_UNIFORM_SAMPLER2D
}
 
enum  rlShaderAttributeDataType { RL_SHADER_ATTRIB_FLOAT = 0 , RL_SHADER_ATTRIB_VEC2 , RL_SHADER_ATTRIB_VEC3 , RL_SHADER_ATTRIB_VEC4 }
 

Functions

RLAPI void rlMatrixMode (int mode)
 
RLAPI void rlPushMatrix (void)
 
RLAPI void rlPopMatrix (void)
 
RLAPI void rlLoadIdentity (void)
 
RLAPI void rlTranslatef (float x, float y, float z)
 
RLAPI void rlRotatef (float angle, float x, float y, float z)
 
RLAPI void rlScalef (float x, float y, float z)
 
RLAPI void rlMultMatrixf (float *matf)
 
RLAPI void rlFrustum (double left, double right, double bottom, double top, double znear, double zfar)
 
RLAPI void rlOrtho (double left, double right, double bottom, double top, double znear, double zfar)
 
RLAPI void rlViewport (int x, int y, int width, int height)
 
RLAPI void rlBegin (int mode)
 
RLAPI void rlEnd (void)
 
RLAPI void rlVertex2i (int x, int y)
 
RLAPI void rlVertex2f (float x, float y)
 
RLAPI void rlVertex3f (float x, float y, float z)
 
RLAPI void rlTexCoord2f (float x, float y)
 
RLAPI void rlNormal3f (float x, float y, float z)
 
RLAPI void rlColor4ub (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
 
RLAPI void rlColor3f (float x, float y, float z)
 
RLAPI void rlColor4f (float x, float y, float z, float w)
 
RLAPI bool rlEnableVertexArray (unsigned int vaoId)
 
RLAPI void rlDisableVertexArray (void)
 
RLAPI void rlEnableVertexBuffer (unsigned int id)
 
RLAPI void rlDisableVertexBuffer (void)
 
RLAPI void rlEnableVertexBufferElement (unsigned int id)
 
RLAPI void rlDisableVertexBufferElement (void)
 
RLAPI void rlEnableVertexAttribute (unsigned int index)
 
RLAPI void rlDisableVertexAttribute (unsigned int index)
 
RLAPI void rlActiveTextureSlot (int slot)
 
RLAPI void rlEnableTexture (unsigned int id)
 
RLAPI void rlDisableTexture (void)
 
RLAPI void rlEnableTextureCubemap (unsigned int id)
 
RLAPI void rlDisableTextureCubemap (void)
 
RLAPI void rlTextureParameters (unsigned int id, int param, int value)
 
RLAPI void rlEnableShader (unsigned int id)
 
RLAPI void rlDisableShader (void)
 
RLAPI void rlEnableFramebuffer (unsigned int id)
 
RLAPI void rlDisableFramebuffer (void)
 
RLAPI void rlActiveDrawBuffers (int count)
 
RLAPI void rlEnableColorBlend (void)
 
RLAPI void rlDisableColorBlend (void)
 
RLAPI void rlEnableDepthTest (void)
 
RLAPI void rlDisableDepthTest (void)
 
RLAPI void rlEnableDepthMask (void)
 
RLAPI void rlDisableDepthMask (void)
 
RLAPI void rlEnableBackfaceCulling (void)
 
RLAPI void rlDisableBackfaceCulling (void)
 
RLAPI void rlEnableScissorTest (void)
 
RLAPI void rlDisableScissorTest (void)
 
RLAPI void rlScissor (int x, int y, int width, int height)
 
RLAPI void rlEnableWireMode (void)
 
RLAPI void rlDisableWireMode (void)
 
RLAPI void rlSetLineWidth (float width)
 
RLAPI float rlGetLineWidth (void)
 
RLAPI void rlEnableSmoothLines (void)
 
RLAPI void rlDisableSmoothLines (void)
 
RLAPI void rlEnableStereoRender (void)
 
RLAPI void rlDisableStereoRender (void)
 
RLAPI bool rlIsStereoRenderEnabled (void)
 
RLAPI void rlClearColor (unsigned char r, unsigned char g, unsigned char b, unsigned char a)
 
RLAPI void rlClearScreenBuffers (void)
 
RLAPI void rlCheckErrors (void)
 
RLAPI void rlSetBlendMode (int mode)
 
RLAPI void rlSetBlendFactors (int glSrcFactor, int glDstFactor, int glEquation)
 
RLAPI void rlglInit (int width, int height)
 
RLAPI void rlglClose (void)
 
RLAPI void rlLoadExtensions (void *loader)
 
RLAPI int rlGetVersion (void)
 
RLAPI void rlSetFramebufferWidth (int width)
 
RLAPI int rlGetFramebufferWidth (void)
 
RLAPI void rlSetFramebufferHeight (int height)
 
RLAPI int rlGetFramebufferHeight (void)
 
RLAPI unsigned int rlGetTextureIdDefault (void)
 
RLAPI unsigned int rlGetShaderIdDefault (void)
 
RLAPI int * rlGetShaderLocsDefault (void)
 
RLAPI rlRenderBatch rlLoadRenderBatch (int numBuffers, int bufferElements)
 
RLAPI void rlUnloadRenderBatch (rlRenderBatch batch)
 
RLAPI void rlDrawRenderBatch (rlRenderBatch *batch)
 
RLAPI void rlSetRenderBatchActive (rlRenderBatch *batch)
 
RLAPI void rlDrawRenderBatchActive (void)
 
RLAPI bool rlCheckRenderBatchLimit (int vCount)
 
RLAPI void rlSetTexture (unsigned int id)
 
RLAPI unsigned int rlLoadVertexArray (void)
 
RLAPI unsigned int rlLoadVertexBuffer (const void *buffer, int size, bool dynamic)
 
RLAPI unsigned int rlLoadVertexBufferElement (const void *buffer, int size, bool dynamic)
 
RLAPI void rlUpdateVertexBuffer (unsigned int bufferId, const void *data, int dataSize, int offset)
 
RLAPI void rlUpdateVertexBufferElements (unsigned int id, const void *data, int dataSize, int offset)
 
RLAPI void rlUnloadVertexArray (unsigned int vaoId)
 
RLAPI void rlUnloadVertexBuffer (unsigned int vboId)
 
RLAPI void rlSetVertexAttribute (unsigned int index, int compSize, int type, bool normalized, int stride, const void *pointer)
 
RLAPI void rlSetVertexAttributeDivisor (unsigned int index, int divisor)
 
RLAPI void rlSetVertexAttributeDefault (int locIndex, const void *value, int attribType, int count)
 
RLAPI void rlDrawVertexArray (int offset, int count)
 
RLAPI void rlDrawVertexArrayElements (int offset, int count, const void *buffer)
 
RLAPI void rlDrawVertexArrayInstanced (int offset, int count, int instances)
 
RLAPI void rlDrawVertexArrayElementsInstanced (int offset, int count, const void *buffer, int instances)
 
RLAPI unsigned int rlLoadTexture (const void *data, int width, int height, int format, int mipmapCount)
 
RLAPI unsigned int rlLoadTextureDepth (int width, int height, bool useRenderBuffer)
 
RLAPI unsigned int rlLoadTextureCubemap (const void *data, int size, int format)
 
RLAPI void rlUpdateTexture (unsigned int id, int offsetX, int offsetY, int width, int height, int format, const void *data)
 
RLAPI void rlGetGlTextureFormats (int format, int *glInternalFormat, int *glFormat, int *glType)
 
RLAPI const char * rlGetPixelFormatName (unsigned int format)
 
RLAPI void rlUnloadTexture (unsigned int id)
 
RLAPI void rlGenTextureMipmaps (unsigned int id, int width, int height, int format, int *mipmaps)
 
RLAPI void * rlReadTexturePixels (unsigned int id, int width, int height, int format)
 
RLAPI unsigned char * rlReadScreenPixels (int width, int height)
 
RLAPI unsigned int rlLoadFramebuffer (int width, int height)
 
RLAPI void rlFramebufferAttach (unsigned int fboId, unsigned int texId, int attachType, int texType, int mipLevel)
 
RLAPI bool rlFramebufferComplete (unsigned int id)
 
RLAPI void rlUnloadFramebuffer (unsigned int id)
 
RLAPI unsigned int rlLoadShaderCode (const char *vsCode, const char *fsCode)
 
RLAPI unsigned int rlCompileShader (const char *shaderCode, int type)
 
RLAPI unsigned int rlLoadShaderProgram (unsigned int vShaderId, unsigned int fShaderId)
 
RLAPI void rlUnloadShaderProgram (unsigned int id)
 
RLAPI int rlGetLocationUniform (unsigned int shaderId, const char *uniformName)
 
RLAPI int rlGetLocationAttrib (unsigned int shaderId, const char *attribName)
 
RLAPI void rlSetUniform (int locIndex, const void *value, int uniformType, int count)
 
RLAPI void rlSetUniformMatrix (int locIndex, Matrix mat)
 
RLAPI void rlSetUniformSampler (int locIndex, unsigned int textureId)
 
RLAPI void rlSetShader (unsigned int id, int *locs)
 
RLAPI unsigned int rlLoadComputeShaderProgram (unsigned int shaderId)
 
RLAPI void rlComputeShaderDispatch (unsigned int groupX, unsigned int groupY, unsigned int groupZ)
 
RLAPI unsigned int rlLoadShaderBuffer (unsigned long long size, const void *data, int usageHint)
 
RLAPI void rlUnloadShaderBuffer (unsigned int ssboId)
 
RLAPI void rlUpdateShaderBufferElements (unsigned int id, const void *data, unsigned long long dataSize, unsigned long long offset)
 
RLAPI unsigned long long rlGetShaderBufferSize (unsigned int id)
 
RLAPI void rlReadShaderBufferElements (unsigned int id, void *dest, unsigned long long count, unsigned long long offset)
 
RLAPI void rlBindShaderBuffer (unsigned int id, unsigned int index)
 
RLAPI void rlCopyBuffersElements (unsigned int destId, unsigned int srcId, unsigned long long destOffset, unsigned long long srcOffset, unsigned long long count)
 
RLAPI void rlBindImageTexture (unsigned int id, unsigned int index, unsigned int format, int readonly)
 
RLAPI Matrix rlGetMatrixModelview (void)
 
RLAPI Matrix rlGetMatrixProjection (void)
 
RLAPI Matrix rlGetMatrixTransform (void)
 
RLAPI Matrix rlGetMatrixProjectionStereo (int eye)
 
RLAPI Matrix rlGetMatrixViewOffsetStereo (int eye)
 
RLAPI void rlSetMatrixProjection (Matrix proj)
 
RLAPI void rlSetMatrixModelview (Matrix view)
 
RLAPI void rlSetMatrixProjectionStereo (Matrix right, Matrix left)
 
RLAPI void rlSetMatrixViewOffsetStereo (Matrix right, Matrix left)
 
RLAPI void rlLoadDrawCube (void)
 
RLAPI void rlLoadDrawQuad (void)
 

Macro Definition Documentation

◆ GRAPHICS_API_OPENGL_33

#define GRAPHICS_API_OPENGL_33

Definition at line 153 of file rlgl.h.

◆ RL_CALLOC

#define RL_CALLOC (   n,
  sz 
)    calloc(n,sz)

Definition at line 138 of file rlgl.h.

◆ RL_COMPUTE_SHADER

#define RL_COMPUTE_SHADER   0x91B9

Definition at line 280 of file rlgl.h.

◆ RL_CULL_DISTANCE_FAR

#define RL_CULL_DISTANCE_FAR   1000.0

Definition at line 230 of file rlgl.h.

◆ RL_CULL_DISTANCE_NEAR

#define RL_CULL_DISTANCE_NEAR   0.01

Definition at line 227 of file rlgl.h.

◆ RL_DEFAULT_BATCH_BUFFER_ELEMENTS

#define RL_DEFAULT_BATCH_BUFFER_ELEMENTS   8192

Definition at line 196 of file rlgl.h.

◆ RL_DEFAULT_BATCH_BUFFERS

#define RL_DEFAULT_BATCH_BUFFERS   1

Definition at line 206 of file rlgl.h.

◆ RL_DEFAULT_BATCH_DRAWCALLS

#define RL_DEFAULT_BATCH_DRAWCALLS   256

Definition at line 209 of file rlgl.h.

◆ RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS

#define RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS   4

Definition at line 212 of file rlgl.h.

◆ RL_DYNAMIC_COPY

#define RL_DYNAMIC_COPY   0x88EA

Definition at line 275 of file rlgl.h.

◆ RL_DYNAMIC_DRAW

#define RL_DYNAMIC_DRAW   0x88E8

Definition at line 273 of file rlgl.h.

◆ RL_DYNAMIC_READ

#define RL_DYNAMIC_READ   0x88E9

Definition at line 274 of file rlgl.h.

◆ RL_FLOAT

#define RL_FLOAT   0x1406

Definition at line 264 of file rlgl.h.

◆ RL_FRAGMENT_SHADER

#define RL_FRAGMENT_SHADER   0x8B30

Definition at line 278 of file rlgl.h.

◆ RL_FREE

#define RL_FREE (   p)    free(p)

Definition at line 144 of file rlgl.h.

◆ RL_LINES

#define RL_LINES   0x0001

Definition at line 258 of file rlgl.h.

◆ RL_MALLOC

#define RL_MALLOC (   sz)    malloc(sz)

Definition at line 135 of file rlgl.h.

◆ RL_MATRIX_TYPE

#define RL_MATRIX_TYPE

Definition at line 376 of file rlgl.h.

◆ RL_MAX_MATRIX_STACK_SIZE

#define RL_MAX_MATRIX_STACK_SIZE   32

Definition at line 217 of file rlgl.h.

◆ RL_MAX_SHADER_LOCATIONS

#define RL_MAX_SHADER_LOCATIONS   32

Definition at line 222 of file rlgl.h.

◆ RL_MODELVIEW

#define RL_MODELVIEW   0x1700

Definition at line 253 of file rlgl.h.

◆ RL_PROJECTION

#define RL_PROJECTION   0x1701

Definition at line 254 of file rlgl.h.

◆ RL_QUADS

#define RL_QUADS   0x0007

Definition at line 260 of file rlgl.h.

◆ RL_REALLOC

#define RL_REALLOC (   n,
  sz 
)    realloc(n,sz)

Definition at line 141 of file rlgl.h.

◆ RL_SHADER_LOC_MAP_DIFFUSE

#define RL_SHADER_LOC_MAP_DIFFUSE   RL_SHADER_LOC_MAP_ALBEDO

Definition at line 470 of file rlgl.h.

◆ RL_SHADER_LOC_MAP_SPECULAR

#define RL_SHADER_LOC_MAP_SPECULAR   RL_SHADER_LOC_MAP_METALNESS

Definition at line 471 of file rlgl.h.

◆ RL_STATIC_COPY

#define RL_STATIC_COPY   0x88E6

Definition at line 272 of file rlgl.h.

◆ RL_STATIC_DRAW

#define RL_STATIC_DRAW   0x88E4

Definition at line 270 of file rlgl.h.

◆ RL_STATIC_READ

#define RL_STATIC_READ   0x88E5

Definition at line 271 of file rlgl.h.

◆ RL_STREAM_COPY

#define RL_STREAM_COPY   0x88E2

Definition at line 269 of file rlgl.h.

◆ RL_STREAM_DRAW

#define RL_STREAM_DRAW   0x88E0

Definition at line 267 of file rlgl.h.

◆ RL_STREAM_READ

#define RL_STREAM_READ   0x88E1

Definition at line 268 of file rlgl.h.

◆ RL_TEXTURE

#define RL_TEXTURE   0x1702

Definition at line 255 of file rlgl.h.

◆ RL_TEXTURE_FILTER_ANISOTROPIC

#define RL_TEXTURE_FILTER_ANISOTROPIC   0x3000

Definition at line 245 of file rlgl.h.

◆ RL_TEXTURE_FILTER_LINEAR

#define RL_TEXTURE_FILTER_LINEAR   0x2601

Definition at line 240 of file rlgl.h.

◆ RL_TEXTURE_FILTER_LINEAR_MIP_NEAREST

#define RL_TEXTURE_FILTER_LINEAR_MIP_NEAREST   0x2701

Definition at line 243 of file rlgl.h.

◆ RL_TEXTURE_FILTER_MIP_LINEAR

#define RL_TEXTURE_FILTER_MIP_LINEAR   0x2703

Definition at line 244 of file rlgl.h.

◆ RL_TEXTURE_FILTER_MIP_NEAREST

#define RL_TEXTURE_FILTER_MIP_NEAREST   0x2700

Definition at line 241 of file rlgl.h.

◆ RL_TEXTURE_FILTER_NEAREST

#define RL_TEXTURE_FILTER_NEAREST   0x2600

Definition at line 239 of file rlgl.h.

◆ RL_TEXTURE_FILTER_NEAREST_MIP_LINEAR

#define RL_TEXTURE_FILTER_NEAREST_MIP_LINEAR   0x2702

Definition at line 242 of file rlgl.h.

◆ RL_TEXTURE_MAG_FILTER

#define RL_TEXTURE_MAG_FILTER   0x2800

Definition at line 236 of file rlgl.h.

◆ RL_TEXTURE_MIN_FILTER

#define RL_TEXTURE_MIN_FILTER   0x2801

Definition at line 237 of file rlgl.h.

◆ RL_TEXTURE_WRAP_CLAMP

#define RL_TEXTURE_WRAP_CLAMP   0x812F

Definition at line 248 of file rlgl.h.

◆ RL_TEXTURE_WRAP_MIRROR_CLAMP

#define RL_TEXTURE_WRAP_MIRROR_CLAMP   0x8742

Definition at line 250 of file rlgl.h.

◆ RL_TEXTURE_WRAP_MIRROR_REPEAT

#define RL_TEXTURE_WRAP_MIRROR_REPEAT   0x8370

Definition at line 249 of file rlgl.h.

◆ RL_TEXTURE_WRAP_REPEAT

#define RL_TEXTURE_WRAP_REPEAT   0x2901

Definition at line 247 of file rlgl.h.

◆ RL_TEXTURE_WRAP_S

#define RL_TEXTURE_WRAP_S   0x2802

Definition at line 234 of file rlgl.h.

◆ RL_TEXTURE_WRAP_T

#define RL_TEXTURE_WRAP_T   0x2803

Definition at line 235 of file rlgl.h.

◆ RL_TRIANGLES

#define RL_TRIANGLES   0x0004

Definition at line 259 of file rlgl.h.

◆ RL_UNSIGNED_BYTE

#define RL_UNSIGNED_BYTE   0x1401

Definition at line 263 of file rlgl.h.

◆ RL_VERTEX_SHADER

#define RL_VERTEX_SHADER   0x8B31

Definition at line 279 of file rlgl.h.

◆ RLAPI

#define RLAPI

Definition at line 124 of file rlgl.h.

◆ RLGL_RENDER_TEXTURES_HINT

#define RLGL_RENDER_TEXTURES_HINT

Definition at line 185 of file rlgl.h.

◆ RLGL_VERSION

#define RLGL_VERSION   "4.0"

rlgl v4.0 - A multi-OpenGL abstraction layer with an immediate-mode style API

An abstraction layer for multiple OpenGL versions (1.1, 2.1, 3.3 Core, 4.3 Core, ES 2.0) that provides a pseudo-OpenGL 1.1 immediate-mode style API (rlVertex, rlTranslate, rlRotate...)

When chosing an OpenGL backend different than OpenGL 1.1, some internal buffer are initialized on rlglInit() to accumulate vertex data.

When an internal state change is required all the stored vertex data is renderer in batch, additioanlly, rlDrawRenderBatchActive() could be called to force flushing of the batch.

Some additional resources are also loaded for convenience, here the complete list:

  • Default batch (RLGL.defaultBatch): RenderBatch system to accumulate vertex data
  • Default texture (RLGL.defaultTextureId): 1x1 white pixel R8G8B8A8
  • Default shader (RLGL.State.defaultShaderId, RLGL.State.defaultShaderLocs)

Internal buffer (and additional resources) must be manually unloaded calling rlglClose().

CONFIGURATION:

#define GRAPHICS_API_OPENGL_11 #define GRAPHICS_API_OPENGL_21 #define GRAPHICS_API_OPENGL_33 #define GRAPHICS_API_OPENGL_43 #define GRAPHICS_API_OPENGL_ES2 Use selected OpenGL graphics backend, should be supported by platform Those preprocessor defines are only used on rlgl module, if OpenGL version is required by any other module, use rlGetVersion() to check it

#define RLGL_IMPLEMENTATION Generates the implementation of the library into the included file. If not defined, the library is in header only mode and can be included in other headers or source files without problems. But only ONE file should hold the implementation.

#define RLGL_RENDER_TEXTURES_HINT Enable framebuffer objects (fbo) support (enabled by default) Some GPUs could not support them despite the OpenGL version

#define RLGL_SHOW_GL_DETAILS_INFO Show OpenGL extensions and capabilities detailed logs on init

#define RLGL_ENABLE_OPENGL_DEBUG_CONTEXT Enable debug context (only available on OpenGL 4.3)

rlgl capabilities could be customized just defining some internal values before library inclusion (default values listed):

#define RL_DEFAULT_BATCH_BUFFER_ELEMENTS 8192 // Default internal render batch elements limits #define RL_DEFAULT_BATCH_BUFFERS 1 // Default number of batch buffers (multi-buffering) #define RL_DEFAULT_BATCH_DRAWCALLS 256 // Default number of batch draw calls (by state changes: mode, texture) #define RL_DEFAULT_BATCH_MAX_TEXTURE_UNITS 4 // Maximum number of textures units that can be activated on batch drawing (SetShaderValueTexture())

#define RL_MAX_MATRIX_STACK_SIZE 32 // Maximum size of internal Matrix stack #define RL_MAX_SHADER_LOCATIONS 32 // Maximum number of shader locations supported #define RL_CULL_DISTANCE_NEAR 0.01 // Default projection matrix near cull distance #define RL_CULL_DISTANCE_FAR 1000.0 // Default projection matrix far cull distance

When loading a shader, the following vertex attribute and uniform location names are tried to be set automatically:

#define RL_DEFAULT_SHADER_ATTRIB_NAME_POSITION "vertexPosition" // Binded by default to shader location: 0 #define RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD "vertexTexCoord" // Binded by default to shader location: 1 #define RL_DEFAULT_SHADER_ATTRIB_NAME_NORMAL "vertexNormal" // Binded by default to shader location: 2 #define RL_DEFAULT_SHADER_ATTRIB_NAME_COLOR "vertexColor" // Binded by default to shader location: 3 #define RL_DEFAULT_SHADER_ATTRIB_NAME_TANGENT "vertexTangent" // Binded by default to shader location: 4 #define RL_DEFAULT_SHADER_ATTRIB_NAME_TEXCOORD2 "vertexTexCoord2" // Binded by default to shader location: 5 #define RL_DEFAULT_SHADER_UNIFORM_NAME_MVP "mvp" // model-view-projection matrix #define RL_DEFAULT_SHADER_UNIFORM_NAME_VIEW "matView" // view matrix #define RL_DEFAULT_SHADER_UNIFORM_NAME_PROJECTION "matProjection" // projection matrix #define RL_DEFAULT_SHADER_UNIFORM_NAME_MODEL "matModel" // model matrix #define RL_DEFAULT_SHADER_UNIFORM_NAME_NORMAL "matNormal" // normal matrix (transpose(inverse(matModelView)) #define RL_DEFAULT_SHADER_UNIFORM_NAME_COLOR "colDiffuse" // color diffuse (base tint color, multiplied by texture color) #define RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE0 "texture0" // texture0 (texture slot active 0) #define RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE1 "texture1" // texture1 (texture slot active 1) #define RL_DEFAULT_SHADER_SAMPLER2D_NAME_TEXTURE2 "texture2" // texture2 (texture slot active 2)

DEPENDENCIES:

  • OpenGL libraries (depending on platform and OpenGL version selected)
  • GLAD OpenGL extensions loading library (only for OpenGL 3.3 Core, 4.3 Core)

LICENSE: zlib/libpng

Copyright (c) 2014-2022 Ramon Santamaria (@raysan5)

This software is provided "as-is", without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

Definition at line 110 of file rlgl.h.

◆ TRACELOG

#define TRACELOG (   level,
  ... 
)    (void)0

Definition at line 129 of file rlgl.h.

◆ TRACELOGD

#define TRACELOGD (   ...)    (void)0

Definition at line 130 of file rlgl.h.

Typedef Documentation

◆ bool

typedef enum bool bool

◆ Matrix

typedef struct Matrix Matrix

◆ rlDrawCall

typedef struct rlDrawCall rlDrawCall

◆ rlRenderBatch

typedef struct rlRenderBatch rlRenderBatch

◆ rlVertexBuffer

Enumeration Type Documentation

◆ bool

enum bool
Enumerator
false 
true 
false 
true 
false 
true 
false 
true 

Definition at line 365 of file rlgl.h.

◆ rlBlendMode

Enumerator
RL_BLEND_ALPHA 
RL_BLEND_ADDITIVE 
RL_BLEND_MULTIPLIED 
RL_BLEND_ADD_COLORS 
RL_BLEND_SUBTRACT_COLORS 
RL_BLEND_ALPHA_PREMUL 
RL_BLEND_CUSTOM 

Definition at line 430 of file rlgl.h.

◆ rlFramebufferAttachTextureType

Enumerator
RL_ATTACHMENT_CUBEMAP_POSITIVE_X 
RL_ATTACHMENT_CUBEMAP_NEGATIVE_X 
RL_ATTACHMENT_CUBEMAP_POSITIVE_Y 
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Y 
RL_ATTACHMENT_CUBEMAP_POSITIVE_Z 
RL_ATTACHMENT_CUBEMAP_NEGATIVE_Z 
RL_ATTACHMENT_TEXTURE2D 
RL_ATTACHMENT_RENDERBUFFER 

Definition at line 306 of file rlgl.h.

◆ rlFramebufferAttachType

Enumerator
RL_ATTACHMENT_COLOR_CHANNEL0 
RL_ATTACHMENT_COLOR_CHANNEL1 
RL_ATTACHMENT_COLOR_CHANNEL2 
RL_ATTACHMENT_COLOR_CHANNEL3 
RL_ATTACHMENT_COLOR_CHANNEL4 
RL_ATTACHMENT_COLOR_CHANNEL5 
RL_ATTACHMENT_COLOR_CHANNEL6 
RL_ATTACHMENT_COLOR_CHANNEL7 
RL_ATTACHMENT_DEPTH 
RL_ATTACHMENT_STENCIL 

Definition at line 293 of file rlgl.h.

◆ rlGlVersion

Enumerator
OPENGL_11 
OPENGL_21 
OPENGL_33 
OPENGL_43 
OPENGL_ES_20 

Definition at line 285 of file rlgl.h.

◆ rlPixelFormat

Enumerator
RL_PIXELFORMAT_UNCOMPRESSED_GRAYSCALE 
RL_PIXELFORMAT_UNCOMPRESSED_GRAY_ALPHA 
RL_PIXELFORMAT_UNCOMPRESSED_R5G6B5 
RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8 
RL_PIXELFORMAT_UNCOMPRESSED_R5G5B5A1 
RL_PIXELFORMAT_UNCOMPRESSED_R4G4B4A4 
RL_PIXELFORMAT_UNCOMPRESSED_R8G8B8A8 
RL_PIXELFORMAT_UNCOMPRESSED_R32 
RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32 
RL_PIXELFORMAT_UNCOMPRESSED_R32G32B32A32 
RL_PIXELFORMAT_COMPRESSED_DXT1_RGB 
RL_PIXELFORMAT_COMPRESSED_DXT1_RGBA 
RL_PIXELFORMAT_COMPRESSED_DXT3_RGBA 
RL_PIXELFORMAT_COMPRESSED_DXT5_RGBA 
RL_PIXELFORMAT_COMPRESSED_ETC1_RGB 
RL_PIXELFORMAT_COMPRESSED_ETC2_RGB 
RL_PIXELFORMAT_COMPRESSED_ETC2_EAC_RGBA 
RL_PIXELFORMAT_COMPRESSED_PVRT_RGB 
RL_PIXELFORMAT_COMPRESSED_PVRT_RGBA 
RL_PIXELFORMAT_COMPRESSED_ASTC_4x4_RGBA 
RL_PIXELFORMAT_COMPRESSED_ASTC_8x8_RGBA 

Definition at line 393 of file rlgl.h.

◆ rlShaderAttributeDataType

Enumerator
RL_SHADER_ATTRIB_FLOAT 
RL_SHADER_ATTRIB_VEC2 
RL_SHADER_ATTRIB_VEC3 
RL_SHADER_ATTRIB_VEC4 

Definition at line 487 of file rlgl.h.

◆ rlShaderLocationIndex

Enumerator
RL_SHADER_LOC_VERTEX_POSITION 
RL_SHADER_LOC_VERTEX_TEXCOORD01 
RL_SHADER_LOC_VERTEX_TEXCOORD02 
RL_SHADER_LOC_VERTEX_NORMAL 
RL_SHADER_LOC_VERTEX_TANGENT 
RL_SHADER_LOC_VERTEX_COLOR 
RL_SHADER_LOC_MATRIX_MVP 
RL_SHADER_LOC_MATRIX_VIEW 
RL_SHADER_LOC_MATRIX_PROJECTION 
RL_SHADER_LOC_MATRIX_MODEL 
RL_SHADER_LOC_MATRIX_NORMAL 
RL_SHADER_LOC_VECTOR_VIEW 
RL_SHADER_LOC_COLOR_DIFFUSE 
RL_SHADER_LOC_COLOR_SPECULAR 
RL_SHADER_LOC_COLOR_AMBIENT 
RL_SHADER_LOC_MAP_ALBEDO 
RL_SHADER_LOC_MAP_METALNESS 
RL_SHADER_LOC_MAP_NORMAL 
RL_SHADER_LOC_MAP_ROUGHNESS 
RL_SHADER_LOC_MAP_OCCLUSION 
RL_SHADER_LOC_MAP_EMISSION 
RL_SHADER_LOC_MAP_HEIGHT 
RL_SHADER_LOC_MAP_CUBEMAP 
RL_SHADER_LOC_MAP_IRRADIANCE 
RL_SHADER_LOC_MAP_PREFILTER 
RL_SHADER_LOC_MAP_BRDF 

Definition at line 441 of file rlgl.h.

◆ rlShaderUniformDataType

Enumerator
RL_SHADER_UNIFORM_FLOAT 
RL_SHADER_UNIFORM_VEC2 
RL_SHADER_UNIFORM_VEC3 
RL_SHADER_UNIFORM_VEC4 
RL_SHADER_UNIFORM_INT 
RL_SHADER_UNIFORM_IVEC2 
RL_SHADER_UNIFORM_IVEC3 
RL_SHADER_UNIFORM_IVEC4 
RL_SHADER_UNIFORM_SAMPLER2D 

Definition at line 474 of file rlgl.h.

◆ rlTextureFilter

Enumerator
RL_TEXTURE_FILTER_POINT 
RL_TEXTURE_FILTER_BILINEAR 
RL_TEXTURE_FILTER_TRILINEAR 
RL_TEXTURE_FILTER_ANISOTROPIC_4X 
RL_TEXTURE_FILTER_ANISOTROPIC_8X 
RL_TEXTURE_FILTER_ANISOTROPIC_16X 

Definition at line 420 of file rlgl.h.

◆ rlTraceLogLevel

Enumerator
RL_LOG_ALL 
RL_LOG_TRACE 
RL_LOG_DEBUG 
RL_LOG_INFO 
RL_LOG_WARNING 
RL_LOG_ERROR 
RL_LOG_FATAL 
RL_LOG_NONE 

Definition at line 381 of file rlgl.h.

Function Documentation

◆ rlActiveDrawBuffers()

RLAPI void rlActiveDrawBuffers ( int  count)

◆ rlActiveTextureSlot()

RLAPI void rlActiveTextureSlot ( int  slot)
+ Here is the caller graph for this function:

◆ rlBegin()

RLAPI void rlBegin ( int  mode)
+ Here is the caller graph for this function:

◆ rlBindImageTexture()

RLAPI void rlBindImageTexture ( unsigned int  id,
unsigned int  index,
unsigned int  format,
int  readonly 
)

◆ rlBindShaderBuffer()

RLAPI void rlBindShaderBuffer ( unsigned int  id,
unsigned int  index 
)

◆ rlCheckErrors()

RLAPI void rlCheckErrors ( void  )

◆ rlCheckRenderBatchLimit()

RLAPI bool rlCheckRenderBatchLimit ( int  vCount)
+ Here is the caller graph for this function:

◆ rlClearColor()

RLAPI void rlClearColor ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a 
)
+ Here is the caller graph for this function:

◆ rlClearScreenBuffers()

RLAPI void rlClearScreenBuffers ( void  )
+ Here is the caller graph for this function:

◆ rlColor3f()

RLAPI void rlColor3f ( float  x,
float  y,
float  z 
)
+ Here is the caller graph for this function:

◆ rlColor4f()

RLAPI void rlColor4f ( float  x,
float  y,
float  z,
float  w 
)

◆ rlColor4ub()

RLAPI void rlColor4ub ( unsigned char  r,
unsigned char  g,
unsigned char  b,
unsigned char  a 
)
+ Here is the caller graph for this function:

◆ rlCompileShader()

RLAPI unsigned int rlCompileShader ( const char *  shaderCode,
int  type 
)

◆ rlComputeShaderDispatch()

RLAPI void rlComputeShaderDispatch ( unsigned int  groupX,
unsigned int  groupY,
unsigned int  groupZ 
)

◆ rlCopyBuffersElements()

RLAPI void rlCopyBuffersElements ( unsigned int  destId,
unsigned int  srcId,
unsigned long long  destOffset,
unsigned long long  srcOffset,
unsigned long long  count 
)

◆ rlDisableBackfaceCulling()

RLAPI void rlDisableBackfaceCulling ( void  )

◆ rlDisableColorBlend()

RLAPI void rlDisableColorBlend ( void  )

◆ rlDisableDepthMask()

RLAPI void rlDisableDepthMask ( void  )

◆ rlDisableDepthTest()

RLAPI void rlDisableDepthTest ( void  )
+ Here is the caller graph for this function:

◆ rlDisableFramebuffer()

RLAPI void rlDisableFramebuffer ( void  )
+ Here is the caller graph for this function:

◆ rlDisableScissorTest()

RLAPI void rlDisableScissorTest ( void  )
+ Here is the caller graph for this function:

◆ rlDisableShader()

RLAPI void rlDisableShader ( void  )
+ Here is the caller graph for this function:

◆ rlDisableSmoothLines()

RLAPI void rlDisableSmoothLines ( void  )

◆ rlDisableStereoRender()

RLAPI void rlDisableStereoRender ( void  )
+ Here is the caller graph for this function:

◆ rlDisableTexture()

RLAPI void rlDisableTexture ( void  )
+ Here is the caller graph for this function:

◆ rlDisableTextureCubemap()

RLAPI void rlDisableTextureCubemap ( void  )
+ Here is the caller graph for this function:

◆ rlDisableVertexArray()

RLAPI void rlDisableVertexArray ( void  )
+ Here is the caller graph for this function:

◆ rlDisableVertexAttribute()

RLAPI void rlDisableVertexAttribute ( unsigned int  index)
+ Here is the caller graph for this function:

◆ rlDisableVertexBuffer()

RLAPI void rlDisableVertexBuffer ( void  )
+ Here is the caller graph for this function:

◆ rlDisableVertexBufferElement()

RLAPI void rlDisableVertexBufferElement ( void  )
+ Here is the caller graph for this function:

◆ rlDisableWireMode()

RLAPI void rlDisableWireMode ( void  )
+ Here is the caller graph for this function:

◆ rlDrawRenderBatch()

RLAPI void rlDrawRenderBatch ( rlRenderBatch batch)

◆ rlDrawRenderBatchActive()

RLAPI void rlDrawRenderBatchActive ( void  )
+ Here is the caller graph for this function:

◆ rlDrawVertexArray()

RLAPI void rlDrawVertexArray ( int  offset,
int  count 
)
+ Here is the caller graph for this function:

◆ rlDrawVertexArrayElements()

RLAPI void rlDrawVertexArrayElements ( int  offset,
int  count,
const void *  buffer 
)
+ Here is the caller graph for this function:

◆ rlDrawVertexArrayElementsInstanced()

RLAPI void rlDrawVertexArrayElementsInstanced ( int  offset,
int  count,
const void *  buffer,
int  instances 
)
+ Here is the caller graph for this function:

◆ rlDrawVertexArrayInstanced()

RLAPI void rlDrawVertexArrayInstanced ( int  offset,
int  count,
int  instances 
)
+ Here is the caller graph for this function:

◆ rlEnableBackfaceCulling()

RLAPI void rlEnableBackfaceCulling ( void  )

◆ rlEnableColorBlend()

RLAPI void rlEnableColorBlend ( void  )

◆ rlEnableDepthMask()

RLAPI void rlEnableDepthMask ( void  )

◆ rlEnableDepthTest()

RLAPI void rlEnableDepthTest ( void  )
+ Here is the caller graph for this function:

◆ rlEnableFramebuffer()

RLAPI void rlEnableFramebuffer ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlEnableScissorTest()

RLAPI void rlEnableScissorTest ( void  )
+ Here is the caller graph for this function:

◆ rlEnableShader()

RLAPI void rlEnableShader ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlEnableSmoothLines()

RLAPI void rlEnableSmoothLines ( void  )

◆ rlEnableStereoRender()

RLAPI void rlEnableStereoRender ( void  )
+ Here is the caller graph for this function:

◆ rlEnableTexture()

RLAPI void rlEnableTexture ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlEnableTextureCubemap()

RLAPI void rlEnableTextureCubemap ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlEnableVertexArray()

RLAPI bool rlEnableVertexArray ( unsigned int  vaoId)
+ Here is the caller graph for this function:

◆ rlEnableVertexAttribute()

RLAPI void rlEnableVertexAttribute ( unsigned int  index)
+ Here is the caller graph for this function:

◆ rlEnableVertexBuffer()

RLAPI void rlEnableVertexBuffer ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlEnableVertexBufferElement()

RLAPI void rlEnableVertexBufferElement ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlEnableWireMode()

RLAPI void rlEnableWireMode ( void  )
+ Here is the caller graph for this function:

◆ rlEnd()

RLAPI void rlEnd ( void  )
+ Here is the caller graph for this function:

◆ rlFramebufferAttach()

RLAPI void rlFramebufferAttach ( unsigned int  fboId,
unsigned int  texId,
int  attachType,
int  texType,
int  mipLevel 
)
+ Here is the caller graph for this function:

◆ rlFramebufferComplete()

RLAPI bool rlFramebufferComplete ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlFrustum()

RLAPI void rlFrustum ( double  left,
double  right,
double  bottom,
double  top,
double  znear,
double  zfar 
)
+ Here is the caller graph for this function:

◆ rlGenTextureMipmaps()

RLAPI void rlGenTextureMipmaps ( unsigned int  id,
int  width,
int  height,
int  format,
int *  mipmaps 
)
+ Here is the caller graph for this function:

◆ rlGetFramebufferHeight()

RLAPI int rlGetFramebufferHeight ( void  )
+ Here is the caller graph for this function:

◆ rlGetFramebufferWidth()

RLAPI int rlGetFramebufferWidth ( void  )
+ Here is the caller graph for this function:

◆ rlGetGlTextureFormats()

RLAPI void rlGetGlTextureFormats ( int  format,
int *  glInternalFormat,
int *  glFormat,
int *  glType 
)

◆ rlGetLineWidth()

RLAPI float rlGetLineWidth ( void  )

◆ rlGetLocationAttrib()

RLAPI int rlGetLocationAttrib ( unsigned int  shaderId,
const char *  attribName 
)
+ Here is the caller graph for this function:

◆ rlGetLocationUniform()

RLAPI int rlGetLocationUniform ( unsigned int  shaderId,
const char *  uniformName 
)
+ Here is the caller graph for this function:

◆ rlGetMatrixModelview()

RLAPI Matrix rlGetMatrixModelview ( void  )
+ Here is the caller graph for this function:

◆ rlGetMatrixProjection()

RLAPI Matrix rlGetMatrixProjection ( void  )
+ Here is the caller graph for this function:

◆ rlGetMatrixProjectionStereo()

RLAPI Matrix rlGetMatrixProjectionStereo ( int  eye)
+ Here is the caller graph for this function:

◆ rlGetMatrixTransform()

RLAPI Matrix rlGetMatrixTransform ( void  )
+ Here is the caller graph for this function:

◆ rlGetMatrixViewOffsetStereo()

RLAPI Matrix rlGetMatrixViewOffsetStereo ( int  eye)
+ Here is the caller graph for this function:

◆ rlGetPixelFormatName()

RLAPI const char * rlGetPixelFormatName ( unsigned int  format)
+ Here is the caller graph for this function:

◆ rlGetShaderBufferSize()

RLAPI unsigned long long rlGetShaderBufferSize ( unsigned int  id)

◆ rlGetShaderIdDefault()

RLAPI unsigned int rlGetShaderIdDefault ( void  )
+ Here is the caller graph for this function:

◆ rlGetShaderLocsDefault()

RLAPI int * rlGetShaderLocsDefault ( void  )
+ Here is the caller graph for this function:

◆ rlGetTextureIdDefault()

RLAPI unsigned int rlGetTextureIdDefault ( void  )
+ Here is the caller graph for this function:

◆ rlGetVersion()

RLAPI int rlGetVersion ( void  )
+ Here is the caller graph for this function:

◆ rlglClose()

RLAPI void rlglClose ( void  )
+ Here is the caller graph for this function:

◆ rlglInit()

RLAPI void rlglInit ( int  width,
int  height 
)

◆ rlIsStereoRenderEnabled()

RLAPI bool rlIsStereoRenderEnabled ( void  )
+ Here is the caller graph for this function:

◆ rlLoadComputeShaderProgram()

RLAPI unsigned int rlLoadComputeShaderProgram ( unsigned int  shaderId)

◆ rlLoadDrawCube()

RLAPI void rlLoadDrawCube ( void  )

◆ rlLoadDrawQuad()

RLAPI void rlLoadDrawQuad ( void  )

◆ rlLoadExtensions()

RLAPI void rlLoadExtensions ( void *  loader)

◆ rlLoadFramebuffer()

RLAPI unsigned int rlLoadFramebuffer ( int  width,
int  height 
)
+ Here is the caller graph for this function:

◆ rlLoadIdentity()

RLAPI void rlLoadIdentity ( void  )
+ Here is the caller graph for this function:

◆ rlLoadRenderBatch()

RLAPI rlRenderBatch rlLoadRenderBatch ( int  numBuffers,
int  bufferElements 
)

◆ rlLoadShaderBuffer()

RLAPI unsigned int rlLoadShaderBuffer ( unsigned long long  size,
const void *  data,
int  usageHint 
)

◆ rlLoadShaderCode()

RLAPI unsigned int rlLoadShaderCode ( const char *  vsCode,
const char *  fsCode 
)
+ Here is the caller graph for this function:

◆ rlLoadShaderProgram()

RLAPI unsigned int rlLoadShaderProgram ( unsigned int  vShaderId,
unsigned int  fShaderId 
)

◆ rlLoadTexture()

RLAPI unsigned int rlLoadTexture ( const void *  data,
int  width,
int  height,
int  format,
int  mipmapCount 
)
+ Here is the caller graph for this function:

◆ rlLoadTextureCubemap()

RLAPI unsigned int rlLoadTextureCubemap ( const void *  data,
int  size,
int  format 
)
+ Here is the caller graph for this function:

◆ rlLoadTextureDepth()

RLAPI unsigned int rlLoadTextureDepth ( int  width,
int  height,
bool  useRenderBuffer 
)
+ Here is the caller graph for this function:

◆ rlLoadVertexArray()

RLAPI unsigned int rlLoadVertexArray ( void  )
+ Here is the caller graph for this function:

◆ rlLoadVertexBuffer()

RLAPI unsigned int rlLoadVertexBuffer ( const void *  buffer,
int  size,
bool  dynamic 
)
+ Here is the caller graph for this function:

◆ rlLoadVertexBufferElement()

RLAPI unsigned int rlLoadVertexBufferElement ( const void *  buffer,
int  size,
bool  dynamic 
)
+ Here is the caller graph for this function:

◆ rlMatrixMode()

RLAPI void rlMatrixMode ( int  mode)
+ Here is the caller graph for this function:

◆ rlMultMatrixf()

RLAPI void rlMultMatrixf ( float *  matf)
+ Here is the caller graph for this function:

◆ rlNormal3f()

RLAPI void rlNormal3f ( float  x,
float  y,
float  z 
)
+ Here is the caller graph for this function:

◆ rlOrtho()

RLAPI void rlOrtho ( double  left,
double  right,
double  bottom,
double  top,
double  znear,
double  zfar 
)
+ Here is the caller graph for this function:

◆ rlPopMatrix()

RLAPI void rlPopMatrix ( void  )
+ Here is the caller graph for this function:

◆ rlPushMatrix()

RLAPI void rlPushMatrix ( void  )
+ Here is the caller graph for this function:

◆ rlReadScreenPixels()

RLAPI unsigned char * rlReadScreenPixels ( int  width,
int  height 
)
+ Here is the caller graph for this function:

◆ rlReadShaderBufferElements()

RLAPI void rlReadShaderBufferElements ( unsigned int  id,
void *  dest,
unsigned long long  count,
unsigned long long  offset 
)

◆ rlReadTexturePixels()

RLAPI void * rlReadTexturePixels ( unsigned int  id,
int  width,
int  height,
int  format 
)
+ Here is the caller graph for this function:

◆ rlRotatef()

RLAPI void rlRotatef ( float  angle,
float  x,
float  y,
float  z 
)
+ Here is the caller graph for this function:

◆ rlScalef()

RLAPI void rlScalef ( float  x,
float  y,
float  z 
)
+ Here is the caller graph for this function:

◆ rlScissor()

RLAPI void rlScissor ( int  x,
int  y,
int  width,
int  height 
)
+ Here is the caller graph for this function:

◆ rlSetBlendFactors()

RLAPI void rlSetBlendFactors ( int  glSrcFactor,
int  glDstFactor,
int  glEquation 
)

◆ rlSetBlendMode()

RLAPI void rlSetBlendMode ( int  mode)
+ Here is the caller graph for this function:

◆ rlSetFramebufferHeight()

RLAPI void rlSetFramebufferHeight ( int  height)
+ Here is the caller graph for this function:

◆ rlSetFramebufferWidth()

RLAPI void rlSetFramebufferWidth ( int  width)
+ Here is the caller graph for this function:

◆ rlSetLineWidth()

RLAPI void rlSetLineWidth ( float  width)

◆ rlSetMatrixModelview()

RLAPI void rlSetMatrixModelview ( Matrix  view)
+ Here is the caller graph for this function:

◆ rlSetMatrixProjection()

RLAPI void rlSetMatrixProjection ( Matrix  proj)
+ Here is the caller graph for this function:

◆ rlSetMatrixProjectionStereo()

RLAPI void rlSetMatrixProjectionStereo ( Matrix  right,
Matrix  left 
)
+ Here is the caller graph for this function:

◆ rlSetMatrixViewOffsetStereo()

RLAPI void rlSetMatrixViewOffsetStereo ( Matrix  right,
Matrix  left 
)
+ Here is the caller graph for this function:

◆ rlSetRenderBatchActive()

RLAPI void rlSetRenderBatchActive ( rlRenderBatch batch)

◆ rlSetShader()

RLAPI void rlSetShader ( unsigned int  id,
int *  locs 
)
+ Here is the caller graph for this function:

◆ rlSetTexture()

RLAPI void rlSetTexture ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlSetUniform()

RLAPI void rlSetUniform ( int  locIndex,
const void *  value,
int  uniformType,
int  count 
)
+ Here is the caller graph for this function:

◆ rlSetUniformMatrix()

RLAPI void rlSetUniformMatrix ( int  locIndex,
Matrix  mat 
)
+ Here is the caller graph for this function:

◆ rlSetUniformSampler()

RLAPI void rlSetUniformSampler ( int  locIndex,
unsigned int  textureId 
)
+ Here is the caller graph for this function:

◆ rlSetVertexAttribute()

RLAPI void rlSetVertexAttribute ( unsigned int  index,
int  compSize,
int  type,
bool  normalized,
int  stride,
const void *  pointer 
)
+ Here is the caller graph for this function:

◆ rlSetVertexAttributeDefault()

RLAPI void rlSetVertexAttributeDefault ( int  locIndex,
const void *  value,
int  attribType,
int  count 
)
+ Here is the caller graph for this function:

◆ rlSetVertexAttributeDivisor()

RLAPI void rlSetVertexAttributeDivisor ( unsigned int  index,
int  divisor 
)
+ Here is the caller graph for this function:

◆ rlTexCoord2f()

RLAPI void rlTexCoord2f ( float  x,
float  y 
)
+ Here is the caller graph for this function:

◆ rlTextureParameters()

RLAPI void rlTextureParameters ( unsigned int  id,
int  param,
int  value 
)
+ Here is the caller graph for this function:

◆ rlTranslatef()

RLAPI void rlTranslatef ( float  x,
float  y,
float  z 
)
+ Here is the caller graph for this function:

◆ rlUnloadFramebuffer()

RLAPI void rlUnloadFramebuffer ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlUnloadRenderBatch()

RLAPI void rlUnloadRenderBatch ( rlRenderBatch  batch)

◆ rlUnloadShaderBuffer()

RLAPI void rlUnloadShaderBuffer ( unsigned int  ssboId)

◆ rlUnloadShaderProgram()

RLAPI void rlUnloadShaderProgram ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlUnloadTexture()

RLAPI void rlUnloadTexture ( unsigned int  id)
+ Here is the caller graph for this function:

◆ rlUnloadVertexArray()

RLAPI void rlUnloadVertexArray ( unsigned int  vaoId)
+ Here is the caller graph for this function:

◆ rlUnloadVertexBuffer()

RLAPI void rlUnloadVertexBuffer ( unsigned int  vboId)
+ Here is the caller graph for this function:

◆ rlUpdateShaderBufferElements()

RLAPI void rlUpdateShaderBufferElements ( unsigned int  id,
const void *  data,
unsigned long long  dataSize,
unsigned long long  offset 
)

◆ rlUpdateTexture()

RLAPI void rlUpdateTexture ( unsigned int  id,
int  offsetX,
int  offsetY,
int  width,
int  height,
int  format,
const void *  data 
)
+ Here is the caller graph for this function:

◆ rlUpdateVertexBuffer()

RLAPI void rlUpdateVertexBuffer ( unsigned int  bufferId,
const void *  data,
int  dataSize,
int  offset 
)
+ Here is the caller graph for this function:

◆ rlUpdateVertexBufferElements()

RLAPI void rlUpdateVertexBufferElements ( unsigned int  id,
const void *  data,
int  dataSize,
int  offset 
)

◆ rlVertex2f()

RLAPI void rlVertex2f ( float  x,
float  y 
)
+ Here is the caller graph for this function:

◆ rlVertex2i()

RLAPI void rlVertex2i ( int  x,
int  y 
)
+ Here is the caller graph for this function:

◆ rlVertex3f()

RLAPI void rlVertex3f ( float  x,
float  y,
float  z 
)
+ Here is the caller graph for this function:

◆ rlViewport()

RLAPI void rlViewport ( int  x,
int  y,
int  width,
int  height 
)
+ Here is the caller graph for this function: