assets.h 3.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. /*
  2. ** Command & Conquer Renegade(tm)
  3. ** Copyright 2025 Electronic Arts Inc.
  4. **
  5. ** This program is free software: you can redistribute it and/or modify
  6. ** it under the terms of the GNU General Public License as published by
  7. ** the Free Software Foundation, either version 3 of the License, or
  8. ** (at your option) any later version.
  9. **
  10. ** This program is distributed in the hope that it will be useful,
  11. ** but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  13. ** GNU General Public License for more details.
  14. **
  15. ** You should have received a copy of the GNU General Public License
  16. ** along with this program. If not, see <http://www.gnu.org/licenses/>.
  17. */
  18. /***********************************************************************************************
  19. *** Confidential - Westwood Studios ***
  20. ***********************************************************************************************
  21. * *
  22. * Project Name : Commando *
  23. * *
  24. * $Archive:: /Commando/Code/Combat/assets.h $*
  25. * *
  26. * $Author:: Jani_p $*
  27. * *
  28. * $Modtime:: 8/31/01 8:03p $*
  29. * *
  30. * $Revision:: 31 $*
  31. * *
  32. *---------------------------------------------------------------------------------------------*
  33. * Functions: *
  34. * - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
  35. #ifndef ASSETS_H
  36. #define ASSETS_H
  37. #ifndef ALWAYS_H
  38. #include "always.h"
  39. #endif
  40. #ifndef ASSETMGR_H
  41. #include "assetmgr.h"
  42. #endif
  43. #ifndef INI_H
  44. #include "ini.h"
  45. #endif
  46. /*
  47. ** INI File Access
  48. */
  49. void Set_INI_Path( const char * path );
  50. INIClass * Get_INI( const char * filename );
  51. void Save_INI( INIClass * p_ini, const char * filename );
  52. void Release_INI( INIClass * ini );
  53. /*
  54. ** Path Striping
  55. */
  56. void Strip_Path_From_Filename( StringClass& new_name, const char * filename );
  57. void Get_Render_Obj_Name_From_Filename( StringClass& new_name, const char * filename );
  58. /*
  59. ** Asset access - these functions strips the path off of the filenames; for use
  60. ** with filenames that come from preset definitions.
  61. */
  62. RenderObjClass * Create_Render_Obj_From_Filename( const char * filename );
  63. TextureClass * Get_Texture_From_Filename( const char * filename,
  64. TextureClass::MipCountType mip_level_count=TextureClass::MIP_LEVELS_ALL );
  65. /*
  66. ** Filenames
  67. */
  68. void Create_Animation_Name( StringClass& anim_name, const char * anim_filename, const char * model_name );
  69. #endif // ASSETS_H