Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F123359
PrimitiveTypes.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Size
938 B
Referenced Files
None
Subscribers
None
PrimitiveTypes.cpp
View Options
#include
<echo/Graphics/PrimitiveTypes.h>
#include
<sstream>
#include
<boost/lexical_cast.hpp>
#include
<echo/Util/StringUtils.h>
#include
<echo/Maths/EchoMaths.h>
namespace
Echo
{
std
::
istream
&
operator
>>
(
std
::
istream
&
i
,
TextureUV
&
tuv
)
{
using
namespace
Utils
::
String
;
std
::
string
temp
;
i
>>
temp
;
if
(
!
Utils
::
String
::
VerifyConstructorAndExtractParameters
(
temp
,
"TextureUV"
)
||
!
ConvertAndAssign
(
temp
,
tuv
.
u
,
tuv
.
v
))
{
tuv
=
TextureUV
(
0
,
0
);
}
return
i
;
}
std
::
istream
&
operator
>>
(
std
::
istream
&
i
,
TextureUVPair
&
tuvPair
)
{
using
namespace
Utils
::
String
;
std
::
string
temp
;
i
>>
temp
;
if
(
!
Utils
::
String
::
VerifyConstructorAndExtractParameters
(
temp
,
"TextureUVPair"
)
||
!
ConvertAndAssign
(
temp
,
tuvPair
.
first
.
u
,
tuvPair
.
first
.
v
,
tuvPair
.
second
.
u
,
tuvPair
.
second
.
v
))
{
tuvPair
.
first
=
TextureUV
(
0
,
0
);
tuvPair
.
second
=
TextureUV
(
1
,
1
);
}
return
i
;
}
}
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Wed, Jan 15, 6:27 PM (30 m, 8 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
72028
Default Alt Text
PrimitiveTypes.cpp (938 B)
Attached To
Mode
rEE Echo 3
Attached
Detach File
Event Timeline
Log In to Comment