Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F123406
Shader.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Size
802 B
Referenced Files
None
Subscribers
None
Shader.cpp
View Options
#include
<echo/Graphics/Shader.h>
namespace
Echo
{
Shader
::
Shader
(
const
std
::
string
&
shaderType
,
const
std
::
string
&
name
)
:
Resource
<
Shader
>
(
true
),
mType
(
shaderType
),
mVersion
(
0
)
{
SetName
(
name
);
}
Shader
::~
Shader
()
{
}
const
std
::
string
&
Shader
::
GetType
()
const
{
return
mType
;
}
const
std
::
string
&
Shader
::
GetSource
()
const
{
return
mSource
;
}
void
Shader
::
SetSource
(
const
std
::
string
&
source
)
{
mSource
=
source
;
mVersion
++
;
}
size_t
Shader
::
GetVersion
()
const
{
return
mVersion
;
}
size_t
Shader
::
OnRequestMemoryRelease
()
{
//Currently not supported.
return
0
;
}
bool
Shader
::
_Load
()
{
//Always loaded
return
true
;
}
bool
Shader
::
_Unload
()
{
//Now unload state
return
true
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, Jan 15, 9:35 PM (3 h, 44 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
72060
Default Alt Text
Shader.cpp (802 B)
Attached To
Mode
rEE Echo 3
Attached
Detach File
Event Timeline
Log In to Comment