SpartanJ / SOIL2

SOIL2 is a tiny C library used primarily for uploading textures into OpenGL.
MIT No Attribution
370 stars 75 forks source link

Add arg (Int*width and int*height) to function with XXX__OGL_XXX. #47

Open cingelmarekmt opened 3 years ago

cingelmarekmt commented 3 years ago

Update function args:

Int width, height; UnsignedInt flags = SOIL_FLAG_TEXTURE_REPEATS | SOIL_FLAG_DDS_LOAD_DIRECT;

glId = SOIL_load_OGL_texture_from_memory( (unsigned char *)&blobData.front(), blobData.size(), SOIL_LOAD_RGBA, SOIL_CREATE_NEW_ID, flags, &width, &height);