Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- =========
- pfnPIC_Load
- =========
- */
- static HIMAGE pfnPIC_Load( const char *szPicName, const byte *image_buf, long image_size, long flags )
- {
- HIMAGE tx;
- if( !COM_CheckString( szPicName ))
- {
- Con_Reportf( S_ERROR "CL_LoadImage: bad name!\n" );
- return 0;
- }
- // add default parms to image
- SetBits( flags, TF_IMAGE );
- Image_SetForceFlags( IL_LOAD_DECAL ); // allow decal images for menu
- tx = GL_LoadTexture( szPicName, image_buf, image_size, flags );
- Image_ClearForceFlags();
- #ifdef _XBOX
- GUIImagesList_Add(tx->id)
- #endif
- return tx;
- }
- void GUIImagesList_Add(int iImageID)
- {
- // Check if added already and then link it in!
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement