Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. /*
  2. =========
  3. pfnPIC_Load
  4. =========
  5. */
  6. static HIMAGE pfnPIC_Load( const char *szPicName, const byte *image_buf, long image_size, long flags )
  7. {
  8. HIMAGE tx;
  9.  
  10. if( !COM_CheckString( szPicName ))
  11. {
  12. Con_Reportf( S_ERROR "CL_LoadImage: bad name!\n" );
  13. return 0;
  14. }
  15.  
  16. // add default parms to image
  17. SetBits( flags, TF_IMAGE );
  18.  
  19. Image_SetForceFlags( IL_LOAD_DECAL ); // allow decal images for menu
  20. tx = GL_LoadTexture( szPicName, image_buf, image_size, flags );
  21. Image_ClearForceFlags();
  22.  
  23. #ifdef _XBOX
  24. GUIImagesList_Add(tx->id)
  25. #endif
  26.  
  27. return tx;
  28. }
  29.  
  30. void GUIImagesList_Add(int iImageID)
  31. {
  32. // Check if added already and then link it in!
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement