textures.h 645 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #ifdef _arch_dreamcast
  3. #include "GL/glkos.h"
  4. #include "GL/glu.h"
  5. #include "GL/glext.h"
  6. #include "kos.h"
  7. #else
  8. #include "GL/gl.h"
  9. #endif
  10. #include "../include/base.h"
  11. #ifndef _WIN32
  12. typedef struct {
  13. GLuint id;
  14. GLuint list_id;
  15. int width;
  16. int height;
  17. int channels;
  18. } Texture;
  19. #else
  20. //TODO add Windows DirectX at least 9.0c support.
  21. #endif
  22. void DrawTexture(Texture texture, float x, float y, float scale, Color color);
  23. Texture LoadTexture(const char* filename);
  24. void UnloadTexture(Texture texture);
  25. void DrawTexturePro(Texture texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint);