This repository has been archived on 2022-10-27. You can view files and clone it, but cannot push or open issues or pull requests.
InfinitShoot/hazel/texture.h

20 lines
746 B
C
Raw Normal View History

2022-07-31 22:27:19 +08:00
#ifndef __HAZEL_TEXTURE_H__
#define __HAZEL_TEXTURE_H__
#include "pch.h"
struct Hazel_Texture;
typedef struct Hazel_Texture Hazel_Texture;
DLLEXPORT Hazel_Texture* Hazel_LoadTexture(const char* filename);
DLLEXPORT Hazel_Texture* Hazel_CreateTexture(const unsigned char* data, int w, int h);
DLLEXPORT void Hazel_DestroyTexture(Hazel_Texture*);
DLLEXPORT void Hazel_TextureGetSize(Hazel_Texture*, int* w, int* h);
DLLEXPORT void Hazel_TextureSetAlpha(Hazel_Texture*, float);
DLLEXPORT void Hazel_TextureSetColor(Hazel_Texture*, float r, float g, float b);
DLLEXPORT float Hazel_TextureGetAlpha(Hazel_Texture*);
DLLEXPORT void Hazel_TextureGetColor(Hazel_Texture*, float* r, float* g, float* b);
void Hazel_BindTexture(Hazel_Texture*);
#endif