Oxygine
1
2g game engine
oxygine
src
STDMaterial.h
1
#pragma once
2
#include "oxygine-include.h"
3
#include "STDRenderer.h"
4
#include "Material.h"
5
6
namespace
oxygine
7
{
8
DECLARE_SMART(STDMaterial, spSTDMaterial);
9
class
STDMaterial
:
public
Material
10
{
11
public
:
12
static
STDMaterial
* instance;
13
14
STDMaterial
(
STDRenderer
* r): _renderer(r) {}
15
16
void
apply(
Material
* prev)
override
;
17
void
finish()
override
;
18
19
void
render(
ClipRectActor
*,
const
RenderState
& rs)
override
;
20
void
render(
MaskedSprite
*,
const
RenderState
& rs)
override
;
21
void
doRender(
Sprite
*,
const
RenderState
& rs)
override
;
22
void
doRender(
TextField
*,
const
RenderState
& rs)
override
;
23
void
doRender(
ColorRectSprite
*,
const
RenderState
& rs)
override
;
24
void
doRender(
ProgressBar
*,
const
RenderState
& rs)
override
;
25
26
void
setViewProj(
const
Matrix
& vp);
27
28
STDRenderer
* getRenderer() {
return
_renderer; }
29
30
protected
:
31
STDRenderer
* _renderer;
32
};
33
34
}
oxygine::Sprite
Definition:
Sprite.h:14
oxygine::Material
Definition:
Material.h:6
oxygine::TextField
Definition:
TextField.h:10
oxygine::STDMaterial
Definition:
STDMaterial.h:9
oxygine::STDRenderer
Definition:
STDRenderer.h:7
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::MatrixT< float >
oxygine::ClipRectActor
Definition:
ClipRectActor.h:11
Generated on Tue Feb 13 2018 05:01:17 for Oxygine by
1.8.14