sprites on screen yay

This commit is contained in:
2023-08-14 03:58:13 -04:00
parent 6325c4e4a7
commit b9395446a0
147 changed files with 28994 additions and 154 deletions

View File

@ -0,0 +1,13 @@
#pragma once
#include "../../resource/resource_shader.h"
#include "../../resource/resource_texture.h"
typedef struct State State;
typedef struct Play
{
State* state;
u32 testID;
} Play;

View File

@ -0,0 +1,14 @@
#include "play.h"
/* Initializes play state. */
void
play_init(Play* self, State* state)
{
memset(self, '\0', sizeof(Play));
self->state = state;
self->testID = ecs_entity_add(&self->state->game->ecs);
entity_test_init(&self->state->game->ecs, self->testID);
}

View File

@ -0,0 +1,21 @@
#pragma once
#include "../STATE_COMMON.h"
#include "../../ecs/ecs.h"
#define PLAY_SHADER_COUNT 2
static const ShaderType PLAY_SHADERS[PLAY_SHADER_COUNT] =
{
SHADER_TEXTURE_QUAD,
SHADER_TRIANGLE
};
#define PLAY_TEXTURE_COUNT 1
static const TextureType PLAY_TEXTURES[PLAY_TEXTURE_COUNT] =
{
TEXTURE_TEST
};
void play_init(Play* play, State* state);