| 12345678910111213141516171819202122232425 |
- #pragma once
- #ifdef _arch_dreamcast
- #include "GL/glkos.h"
- #include "GL/glu.h"
- #include "GL/glext.h"
- #include "kos.h"
- #else
- #include "GL/gl.h"
- #endif
- #include "../include/base.h"
- typedef struct {
- GLuint id;
- GLuint list_id;
- int width;
- int height;
- int channels;
- } Texture;
- void DrawTexture(Texture texture, float x, float y, float scale, Color color);
- Texture LoadTexture(const char* filename);
- Texture LoadTextureFromMemory(const unsigned char* data, size_t data_size);
- void UnloadTexture(Texture texture);
- void DrawTexturePro(Texture texture, Rectangle source, Rectangle dest, Vector2 origin, float rotation, Color tint);
|