daily update on 20240213 by nitload youmu. 逐步弃用GLFW,正在使用wgl重写glfw底层,相关实现转移到C#实现,SSC彻底变成线性代数计算器。
This commit is contained in:
@@ -828,6 +828,19 @@ STBIDEF stbi_uc* stbi_load(char const* filename, int* x, int* y, int* comp, int
|
||||
return result;
|
||||
}
|
||||
|
||||
STBIDEF void stbi_load_to_target(char const* filename, int* x, int* y, stbi_uc* target, int* comp, int req_comp)
|
||||
{
|
||||
FILE* f = stbi__fopen(filename, "rb");
|
||||
unsigned char* result;
|
||||
if (!f)
|
||||
{
|
||||
*target = "can't fopen, Unable to open file"; return;
|
||||
}
|
||||
result = stbi_load_from_file(f, x, y, comp, req_comp);
|
||||
fclose(f);
|
||||
}
|
||||
|
||||
|
||||
STBIDEF stbi_uc* stbi_load_from_file(FILE* f, int* x, int* y, int* comp, int req_comp)
|
||||
{
|
||||
unsigned char* result;
|
||||
|
||||
Reference in New Issue
Block a user