combine twn_texture_modes.h into twn_textures_c.h
This commit is contained in:
parent
6bd3afe9b2
commit
723ccf1126
@ -1,16 +0,0 @@
|
||||
#ifndef TWN_TEXTURES_MODES_H
|
||||
#define TWN_TEXTURES_MODES_H
|
||||
|
||||
/* TODO: rename, as it doesn't have to be about textures only, but blending */
|
||||
/* TODO: move from public /include/ tree */
|
||||
|
||||
/* alpha channel information */
|
||||
typedef enum TextureMode {
|
||||
TEXTURE_MODE_OPAQUE, /* all pixels are solid */
|
||||
TEXTURE_MODE_SEETHROUGH, /* some pixels are alpha zero */
|
||||
TEXTURE_MODE_GHOSTLY, /* arbitrary alpha values */
|
||||
TEXTURE_MODE_COUNT,
|
||||
TEXTURE_MODE_UNKNOWN = -1, /* a sentinel */
|
||||
} TextureMode;
|
||||
|
||||
#endif
|
@ -2,7 +2,6 @@
|
||||
#define TWN_TEXTURES_C_H
|
||||
|
||||
#include "twn_types.h"
|
||||
#include "twn_texture_modes.h"
|
||||
#include "rendering/twn_gpu_texture_c.h"
|
||||
|
||||
#include <SDL2/SDL.h>
|
||||
@ -16,6 +15,16 @@
|
||||
#define TEXTURE_ATLAS_FORMAT SDL_PIXELFORMAT_RGBA32
|
||||
|
||||
|
||||
/* alpha channel information */
|
||||
typedef enum TextureMode {
|
||||
TEXTURE_MODE_OPAQUE, /* all pixels are solid */
|
||||
TEXTURE_MODE_SEETHROUGH, /* some pixels are alpha zero */
|
||||
TEXTURE_MODE_GHOSTLY, /* arbitrary alpha values */
|
||||
TEXTURE_MODE_COUNT,
|
||||
TEXTURE_MODE_UNKNOWN = -1, /* a sentinel */
|
||||
} TextureMode;
|
||||
|
||||
|
||||
typedef struct Texture {
|
||||
Rect srcrect; /* position in atlas */
|
||||
SDL_Surface *data; /* original image data */
|
||||
|
Loading…
Reference in New Issue
Block a user