Draw primitives

To make it easy toi get up and running and for debugging Reliquish provides a number of built in shaders and primitives.

r_shader_presets_get

RShader *r_shader_presets_get(RShaderPresets preset);

Description: This function returns the pointer to one of the built in shaders.

Types:

Enum:

RShaderPresets

P_SP_COLOR_UNIFORM

Description: a single colored (accessed using the uniform "color") surface transformed by "ModelViewProjectionMatrix". it wiull use the first component of the vertex array as its position.

P_SP_COLOR_VERTEX

Description: Same as P_SP_COLOR_UNIFORM, but will use the second component of the vertex array as surface color instead of a uniform.

P_SP_TEXTURE

Description: Draws a textured surface where the first array indicates position and the second uv.

P_SP_COLORED_UNIFORM_TEXTURE

Description: Same as P_SP_TEXTURE but adds the uniform "color" to shade the textured surface.