dsgmLib/include/DSGM_texture.h
2014-11-04 19:07:47 +00:00

15 lines
362 B
C

#pragma once
#define DSGM_FORM_RAM_TEXTURE(type, width, height, data) { type, width, height, data, -1 }
typedef struct {
GL_TEXTURE_TYPE_ENUM type;
enum GL_TEXTURE_SIZE_ENUM width;
enum GL_TEXTURE_SIZE_ENUM height;
const unsigned char *data;
int id;
} DSGM_Texture;
void DSGM_LoadTexture(DSGM_Texture *texture);
void DSGM_ScaleTexture(float x, float y);