Dolphin shader handler
This commit is contained in:
@@ -8,7 +8,19 @@
|
||||
#pragma once
|
||||
#include "display/texture/texture.h"
|
||||
|
||||
typedef union shadermaterial_u shadermaterial_t;
|
||||
typedef struct shaderdolphin_s shaderdolphin_t;
|
||||
|
||||
typedef struct {
|
||||
errorret_t (*setMaterial)(
|
||||
shaderdolphin_t *shader,
|
||||
const shadermaterial_t *material
|
||||
);
|
||||
} shaderdefinitiondolphin_t;
|
||||
|
||||
typedef struct shaderdolphin_s {
|
||||
shaderdefinitiondolphin_t *definition;
|
||||
|
||||
mat4 view;
|
||||
mat4 proj;
|
||||
mat4 model;
|
||||
@@ -22,10 +34,6 @@ typedef struct {
|
||||
uint_fast8_t dirtyMatrix;
|
||||
} shaderdolphin_t;
|
||||
|
||||
typedef struct {
|
||||
void *empty;
|
||||
} shaderdefinitiondolphin_t;
|
||||
|
||||
#define SHADER_DOLPHIN_DIRTY_MODEL (1 << 0)
|
||||
#define SHADER_DOLPHIN_DIRTY_PROJ (1 << 1)
|
||||
#define SHADER_DOLPHIN_DIRTY_VIEW (1 << 2)
|
||||
|
||||
Reference in New Issue
Block a user