Skip to content

Commit

Permalink
Mipmaps TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
vanjac committed Sep 24, 2023
1 parent 834b821 commit 8b45e85
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/glutil.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ namespace winged {

void texImageMipmaps(unsigned int target, int internalFormat, int width, int height,
unsigned int format, unsigned int type, void *data) {
// TODO use either GL_GENERATE_MIPMAP or glGenerateMipmap, + confirm power of two sizing
// https://www.khronos.org/opengl/wiki/Common_Mistakes#gluBuild2DMipmaps
// https://www.gamedev.net/forums/topic/452780-gl_generate_mipmap-vs-glubuild2dmipmaps/
gluBuild2DMipmaps(target, internalFormat, width, height, format, type, data);
}

Expand Down

0 comments on commit 8b45e85

Please sign in to comment.