Oxygine
1
2g game engine
oxygine
src
Material.h
1
#pragma once
2
#include "oxygine-include.h"
3
4
namespace
oxygine
5
{
6
class
Material
7
{
8
public
:
9
static
Material
* currentMaterial;
10
static
void
setCurrent(
Material
*);
11
12
virtual
~
Material
();
13
virtual
void
apply(
Material
* prev = 0) {}
14
virtual
void
finish() {}
15
16
virtual
void
render(
Actor
*,
const
RenderState
& rs);
17
virtual
void
render(
ClipRectActor
*,
const
RenderState
& rs) {}
18
virtual
void
render(
MaskedSprite
*,
const
RenderState
& rs) {}
19
virtual
void
doRender(
Sprite
*,
const
RenderState
& rs) {}
20
virtual
void
doRender(
TextField
*,
const
RenderState
& rs) {}
21
virtual
void
doRender(
ColorRectSprite
*,
const
RenderState
& rs) {}
22
virtual
void
doRender(
ProgressBar
*,
const
RenderState
& rs) {}
23
};
24
}
oxygine::Sprite
Definition:
Sprite.h:14
oxygine::Material
Definition:
Material.h:6
oxygine::Actor
Definition:
Actor.h:42
oxygine::TextField
Definition:
TextField.h:10
oxygine::RenderState
Definition:
RenderState.h:27
oxygine::MaskedSprite
Definition:
MaskedSprite.h:8
oxygine::ProgressBar
Definition:
ProgressBar.h:9
oxygine
–oxgl-end–!
Definition:
Actor.h:14
oxygine::ColorRectSprite
Definition:
ColorRectSprite.h:9
oxygine::ClipRectActor
Definition:
ClipRectActor.h:11
Generated on Tue Feb 13 2018 05:01:17 for Oxygine by
1.8.14