MTek-GDL
0.100.4-muffintrap
Loading...
Searching...
No Matches
include
mgdl
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
12
struct
Material
13
{
14
char
* name;
15
GLfloat shininess;
16
GLfloat emissiveColor[4];
17
GLfloat diffuseColor[4];
18
Texture
* texture;
19
MaterialType
type;
20
};
21
typedef
struct
Material
Material
;
22
23
#ifdef __cplusplus
24
extern
"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
mgdl-texture.h
Texture handling module header.
mgdl-types.h
Library types, macros, defines and enums header.
MaterialType
MaterialType
Material types.
Definition
mgdl-types.h:101
Color4f
Definition
mgdl-color.h:54
Material
Material used by a node.
Definition
mgdl-material.h:13
Texture
Abstract class for cross platform PNG image loading.
Definition
mgdl-texture.h:13
Generated by
1.9.8