initial texture object, texture format code

This commit is contained in:
Brian
2007-06-22 13:37:47 -06:00
parent 13682d959d
commit 5d69aeb002
7 changed files with 56 additions and 0 deletions

View File

@@ -231,4 +231,18 @@ struct pipe_sampler_state
GLfloat max_anisotropy;
};
/**
* XXX rough approximation...
*/
struct pipe_texture_object
{
GLuint format:5; /**< PIPE_FORMAT_x */
GLuint width:13; /**< 13 bits = 8K max size */
GLuint height:13;
GLuint depth:13;
GLubyte *data; /**< only valid while buffer mapped? */
};
#endif