Created
November 13, 2018 14:29
-
-
Save Miouyouyou/768dddffa8ceee94935bb2e0f9ca1180 to your computer and use it in GitHub Desktop.
Draft
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
struct texture_metadata { | |
char const * __restrict const filepath; | |
GLenum target; | |
GLint mimaplevel; | |
GLint gl_pixel_format; | |
GLsizei width; | |
GLsizei height; | |
GLint border; | |
GLenum pixel_format; | |
GLenum bits_format; | |
}; | |
textures { | |
struct texture_metadata name; | |
... | |
} | |
.textures = { | |
.name = { | |
.filepath = "/path/to/file", | |
.target = GL_TEXTURE_2D, | |
.mipmaplevel = 0, | |
.gl_pixel_format = GL_RGB, | |
.width = 128, | |
.height = 2048, | |
.border = 0, | |
.pixel_format = GL_RGB, | |
.bits_format = GL_UNSIGNED_SHORT_5_5_5_1, | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment