Skip to content

Instantly share code, notes, and snippets.

@Miouyouyou
Created November 13, 2018 14:29
Show Gist options
  • Save Miouyouyou/768dddffa8ceee94935bb2e0f9ca1180 to your computer and use it in GitHub Desktop.
Save Miouyouyou/768dddffa8ceee94935bb2e0f9ca1180 to your computer and use it in GitHub Desktop.
Draft
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