Phyiscs engine first pass

This commit is contained in:
2026-04-14 09:34:57 -05:00
parent 0b570b5fd6
commit b5a66993ca
17 changed files with 1009 additions and 52 deletions
+9
View File
@@ -229,6 +229,7 @@ errorret_t shaderSetTextureGL(
if(texture == NULL) {
glDisable(GL_TEXTURE_2D);
errorChain(errorGLCheck());
errorOk();
}
@@ -312,6 +313,14 @@ errorret_t shaderSetColorGL(
// glTexEnvi(GL_TEXTURE_ENV, GL_OPERAND1_RGB, GL_SRC_COLOR);
// errorChain(errorGLCheck());
glColor4f(
(float_t)color.r / 255.0f,
(float_t)color.g / 255.0f,
(float_t)color.b / 255.0f,
(float_t)color.a / 255.0f
);
errorChain(errorGLCheck());
#else
GLint location;
errorChain(shaderParamGetLocationGL(shader, name, &location));