daily update on 20241228 by nitload youmu, better dot in checking

This commit is contained in:
Nitload
2024-12-29 04:30:40 +08:00
parent 592ad55d57
commit 63c3cd17e2
45 changed files with 7193 additions and 4884 deletions
+4 -8
View File
@@ -7,8 +7,7 @@
GladGLContext *currentContext;
extern char infolog[512] = { 0 };
SSCAPI int SSCDECL glCheckShaderStat(GladGLContext *context,
uint64_t shaderHandle, int key,
SSCAPI int SSCDECL glCheckShaderStat(GladGLContext *context, uint64_t shaderHandle, int key,
char **logRef)
{
int stat = 0;
@@ -42,8 +41,7 @@ SSCAPI GLFWglproc SSCDECL loadGlfuncDefault(char *procName)
return (GLFWglproc)ret;
}
SSCAPI unsigned int linkShaderProgram(GladGLContext *context,
GLuint shaderProgram)
SSCAPI unsigned int linkShaderProgram(GladGLContext *context, GLuint shaderProgram)
{
context->LinkProgram(shaderProgram);
@@ -57,14 +55,12 @@ SSCAPI unsigned int linkShaderProgram(GladGLContext *context,
}
}
SSCAPI void SSCDECL loadImageData(char *location, Image *out,
imageLoader loader)
SSCAPI void SSCDECL loadImageData(char *location, Image *out, imageLoader loader)
{
if (loader == NULL) {
loader = stbi_load;
}
out->pixelPtr = loader(location, &(out->width), &(out->height),
&(out->channel), 0);
out->pixelPtr = loader(location, &(out->width), &(out->height), &(out->channel), 0);
}
SSCAPI void SSCDECL unloadImageData(Image *out)