Fission
FSN
Loading...
Searching...
No Matches
libs
fsRenderer
src
fsCMaterial.h
Go to the documentation of this file.
1
/********************************************************************
2
*
3
* Created: 27/2/2014 16:41
4
*
5
* File: fsCMaterial.h
6
*
7
* Author: Mick Waites
8
*
9
* Purpose: Render material
10
*
11
*********************************************************************/
12
13
#ifndef fsCMaterialhdr
14
#define fsCMaterialhdr
15
16
#include <memory>
17
18
#include <
fsCore/fsBaseTypes.h
>
19
20
class
fsITexture
;
21
class
fsCBrush
;
22
23
24
class
fsCMaterial
25
{
26
public
:
27
28
enum
29
{
30
eALPHA_NONE
= 0,
31
// eALPHA_HALF, // MW [21/3/2014|10:39] - Not sure how to do this with DirectX, so disabled.
32
eALPHA_ADD
= 2,
33
eALPHA_SUB
,
34
eALPHA_BLEND
35
};
36
37
fsBool
operator!=
(
const
fsCMaterial
& pRHS)
const
;
38
39
void
propertiesSet
(std::shared_ptr<fsCBrush> pBrush);
40
41
void
alphaBlendSet
(
fsS32
pAlphaBlendMode);
42
43
const
fsITexture
*
texturePtrGet
()
const
;
44
fsS32
alphaBlendGet
()
const
;
45
46
fsCMaterial
();
47
virtual
~fsCMaterial
();
48
49
protected
:
50
51
private
:
52
53
const
fsITexture
* mTexturePtr;
54
fsS32
mAlphaBlendMode;
55
};
56
57
#endif
fsCBrush
Definition
fsCBrush.h:26
fsCMaterial
Definition
fsCMaterial.h:25
fsCMaterial::alphaBlendGet
fsS32 alphaBlendGet() const
Definition
fsCMaterial.cpp:34
fsCMaterial::alphaBlendSet
void alphaBlendSet(fsS32 pAlphaBlendMode)
Definition
fsCMaterial.cpp:24
fsCMaterial::~fsCMaterial
virtual ~fsCMaterial()
Definition
fsCMaterial.cpp:45
fsCMaterial::fsCMaterial
fsCMaterial()
Definition
fsCMaterial.cpp:39
fsCMaterial::propertiesSet
void propertiesSet(std::shared_ptr< fsCBrush > pBrush)
Definition
fsCMaterial.cpp:11
fsCMaterial::eALPHA_NONE
@ eALPHA_NONE
Definition
fsCMaterial.h:30
fsCMaterial::eALPHA_ADD
@ eALPHA_ADD
Definition
fsCMaterial.h:32
fsCMaterial::eALPHA_BLEND
@ eALPHA_BLEND
Definition
fsCMaterial.h:34
fsCMaterial::eALPHA_SUB
@ eALPHA_SUB
Definition
fsCMaterial.h:33
fsCMaterial::texturePtrGet
const fsITexture * texturePtrGet() const
Definition
fsCMaterial.cpp:29
fsCMaterial::operator!=
fsBool operator!=(const fsCMaterial &pRHS) const
Definition
fsCMaterial.cpp:5
fsITexture
Definition
fsITexture.h:26
fsBaseTypes.h
fsBool
bool fsBool
Definition
fsBaseTypes.h:26
fsS32
int fsS32
Definition
fsBaseTypes.h:20
Generated on
for Fission by
1.16.1