MTek-GDL 0.100.4-muffintrap
Loading...
Searching...
No Matches
mgdl-material.h
1#pragma once
2
3#include <mgdl/mgdl-opengl.h>
4#include <mgdl/mgdl-types.h>
5#include <mgdl/mgdl-texture.h>
6
7
13{
14 char* name;
15 GLfloat shininess;
16 GLfloat emissiveColor[4];
17 GLfloat diffuseColor[4];
18 Texture* texture;
19 MaterialType type;
20};
21typedef struct Material Material;
22
23#ifdef __cplusplus
24extern "C"
25{
26#endif
34 Material* Material_Load(const char* name, Texture* texture, MaterialType type);
35
36 Material* Material_CreateColor(Color4f color, GLfloat shininess, GLfloat emissionPower);
37
42 void Material_Apply(Material* material);
43 void Material_Reset(void);
44
45#ifdef __cplusplus
46}
47#endif
Texture handling module header.
Library types, macros, defines and enums header.
MaterialType
Material types.
Definition mgdl-types.h:101
Definition mgdl-color.h:54
Material used by a node.
Definition mgdl-material.h:13
Abstract class for cross platform PNG image loading.
Definition mgdl-texture.h:13