Make pixel format querying a member (massaging for merge).

Remove a function from the header.
This commit is contained in:
Glenn Maynard
2003-05-26 03:12:12 +00:00
parent 35405bc34c
commit 56b79a197d
6 changed files with 41 additions and 24 deletions
+7 -1
View File
@@ -740,7 +740,7 @@ void RageDisplay::SetBackfaceCull( bool b )
glDisable( GL_CULL_FACE );
}
const PixelFormatDesc PIXEL_FORMAT_DESC[NUM_PIX_FORMATS] = {
static const PixelFormatDesc PIXEL_FORMAT_DESC[NUM_PIX_FORMATS] = {
{
/* B8G8R8A8 */
32,
@@ -783,6 +783,12 @@ const PixelFormatDesc PIXEL_FORMAT_DESC[NUM_PIX_FORMATS] = {
}
};
const PixelFormatDesc *RageDisplay::GetPixelFormatDesc(PixelFormat pf) const
{
ASSERT( pf < NUM_PIX_FORMATS );
return &PIXEL_FORMAT_DESC[pf];
}
struct GLPixFmtInfo_t {
GLenum internalfmt; /* target format */