SDL 2.0
SDL_shaders_gl.h File Reference
+ Include dependency graph for SDL_shaders_gl.h:

Go to the source code of this file.

Typedefs

typedef struct GL_ShaderContext GL_ShaderContext
 

Enumerations

enum  GL_Shader {
  SHADER_INVALID = -1 ,
  SHADER_NONE ,
  SHADER_SOLID ,
  SHADER_RGB ,
  SHADER_RGBA ,
  SHADER_YUV_JPEG ,
  SHADER_YUV_BT601 ,
  SHADER_YUV_BT709 ,
  SHADER_NV12_JPEG ,
  SHADER_NV12_BT601 ,
  SHADER_NV12_BT709 ,
  SHADER_NV21_JPEG ,
  SHADER_NV21_BT601 ,
  SHADER_NV21_BT709 ,
  NUM_SHADERS
}
 

Functions

GL_ShaderContextGL_CreateShaderContext (void)
 
void GL_SelectShader (GL_ShaderContext *ctx, GL_Shader shader)
 
void GL_DestroyShaderContext (GL_ShaderContext *ctx)
 

Typedef Documentation

◆ GL_ShaderContext

Definition at line 47 of file SDL_shaders_gl.h.

Enumeration Type Documentation

◆ GL_Shader

enum GL_Shader
Enumerator
SHADER_INVALID 
SHADER_NONE 
SHADER_SOLID 
SHADER_RGB 
SHADER_RGBA 
SHADER_YUV_JPEG 
SHADER_YUV_BT601 
SHADER_YUV_BT709 
SHADER_NV12_JPEG 
SHADER_NV12_BT601 
SHADER_NV12_BT709 
SHADER_NV21_JPEG 
SHADER_NV21_BT601 
SHADER_NV21_BT709 
NUM_SHADERS 

Definition at line 29 of file SDL_shaders_gl.h.

29 {
30 SHADER_INVALID = -1,
45} GL_Shader;
GL_Shader
@ SHADER_RGB
@ SHADER_NV12_JPEG
@ SHADER_YUV_JPEG
@ SHADER_NONE
@ SHADER_INVALID
@ SHADER_NV21_BT709
@ SHADER_NV12_BT601
@ NUM_SHADERS
@ SHADER_YUV_BT601
@ SHADER_NV12_BT709
@ SHADER_SOLID
@ SHADER_NV21_JPEG
@ SHADER_RGBA
@ SHADER_YUV_BT709
@ SHADER_NV21_BT601

Function Documentation

◆ GL_CreateShaderContext()

GL_ShaderContext * GL_CreateShaderContext ( void  )

◆ GL_DestroyShaderContext()

void GL_DestroyShaderContext ( GL_ShaderContext ctx)

◆ GL_SelectShader()

void GL_SelectShader ( GL_ShaderContext ctx,
GL_Shader  shader 
)