Files
lity3d/Engine/Rendering/material.h
T

24 lines
367 B
C

#pragma once
#include "shader.h"
#include "texture.h"
#include "../ASM/math_c_fallback.h"
#ifdef __cplusplus
extern "C" {
#endif
typedef struct {
Shader* shader;
Texture* texture;
Vec4 color;
int use_texture;
} Material;
Material* material_create(Shader* shader, Texture* texture);
void material_destroy(Material* m);
#ifdef __cplusplus
}
#endif