aboutsummaryrefslogtreecommitdiff
path: root/src/rlgl.h
diff options
context:
space:
mode:
authorraysan5 <raysan5@gmail.com>2015-07-13 18:20:16 +0200
committerraysan5 <raysan5@gmail.com>2015-07-13 18:20:16 +0200
commit552033da27ddeac2c8e9dd6b8ad33b7058963ef6 (patch)
treed9e7f1a07e66d986e43a5f7c099810614b9e9c64 /src/rlgl.h
parent66556b8b479e998dc022fa9c884eb39fae1479f7 (diff)
downloadraylib-552033da27ddeac2c8e9dd6b8ad33b7058963ef6.tar.gz
raylib-552033da27ddeac2c8e9dd6b8ad33b7058963ef6.zip
Move shaders functions to module rlgl
Shader functionality owns to rlgl, not core module
Diffstat (limited to 'src/rlgl.h')
-rw-r--r--src/rlgl.h9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/rlgl.h b/src/rlgl.h
index e241a9c1..eabf07e4 100644
--- a/src/rlgl.h
+++ b/src/rlgl.h
@@ -212,14 +212,11 @@ void rlglInitGraphics(int offsetX, int offsetY, int width, int height); // Init
unsigned int rlglLoadTexture(void *data, int width, int height, int textureFormat, int mipmapCount); // Load in GPU OpenGL texture
void rlglGenerateMipmaps(unsigned int textureId); // Generate mipmap data for selected texture
-Shader rlglLoadShader(char *vsFileName, char *fsFileName); // Load a shader (vertex shader + fragment shader) from files
-unsigned int rlglLoadShaderFromText(char *vShaderStr, char *fShaderStr); // Load a shader from text data
+// NOTE: There is a set of shader related functions that are available to end user,
+// to avoid creating function wrappers through core module, they have been directly declared in raylib.h
+
void rlglInitPostpro(void); // Initialize postprocessing system
void rlglDrawPostpro(void); // Draw with postprocessing shader
-void rlglSetPostproShader(Shader shader); // Set postprocessing shader
-void rlglSetModelShader(Model *model, Shader shader); // Set shader for a model
-void rlglSetCustomShader(Shader shader); // Set custom shader to be used on batch draw
-void rlglSetDefaultShader(void); // Set default shader to be used on batch draw
Model rlglLoadModel(VertexData mesh); // Upload vertex data into GPU and provided VAO/VBO ids
void rlglDrawModel(Model model, Vector3 position, float rotationAngle, Vector3 rotationAxis, Vector3 scale, Color color, bool wires);