home *** CD-ROM | disk | FTP | other *** search
/ Collection of Hack-Phreak Scene Programs / cleanhpvac.zip / cleanhpvac / WD_SRC.ZIP / SOURCE / TEXTURE.HPP < prev   
Text File  |  1995-01-09  |  856b  |  34 lines

  1. typedef struct
  2. {
  3.     BYTE textureName[8];
  4.  
  5.     WORD width, height;
  6.     BYTE **pVertLines;
  7.  
  8.     // The mask to use for this texture (so it doesn't go over the end).
  9.     Fixed xTextureMask;
  10.     
  11.     // What to shift a u (0-1) value by to get a value between 0 and width in this texture.
  12.     WORD xTextureShift;
  13. } Texture;
  14.  
  15.  
  16. // Searches all the loaded textures for the one with that name.
  17. TextureID tx_GetIDFromName( BYTE *pSearchName );
  18.  
  19. // Returns a pointer to the texture with the given index.
  20. Texture *tx_GetTexture( TextureID index );
  21.  
  22. // Appends a new texture .. fills in the ID and returns a pointer to the new
  23. // texture.  Whatever calls this should fill in the texture data.
  24. Texture *tx_AddTexture( TextureID *idNewTexture );
  25.  
  26. // Just draws a texture on the screen..
  27. BOOL tx_DrawTexture( TextureID idToDraw );
  28.  
  29. BOOL tx_UnloadTextures();
  30.  
  31.  
  32.  
  33.  
  34.