Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F130020
Image.h
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
Image.h
View Options
#ifndef _ECHOIMAGEELEMENT_H_
#define _ECHOIMAGEELEMENT_H_
#include
<echo/GUI/Element.h>
#include
<echo/Graphics/PrimitiveTypes.h>
namespace
Echo
{
namespace
GUI
{
/**
* A GUI Image applies a material to a Quad.
*/
class
Image
:
public
Element
{
public
:
Image
(
shared_ptr
<
Material
>
material
);
virtual
~
Image
();
/**
* Since an Image is primarily a mesh but not intended to be a shared resource,
* copying an Image will copy the image settings but the copy will have its own
* Mesh.
* @see Element::operator=() for documentation on Element copying.
* @see Node::operator=() for documentation on copying.
*/
Image
(
const
Image
&
other
);
Image
&
operator
=
(
const
Image
&
rhs
);
void
SetMaterial
(
shared_ptr
<
Material
>
material
);
void
SetFlipHorizontally
(
bool
flipHorizontally
);
void
SetFlipVertically
(
bool
flipVertically
);
void
SetMinUV
(
TextureUV
minUV
);
void
SetMaxUV
(
TextureUV
maxUV
);
private
:
virtual
shared_ptr
<
Element
>
_Clone
()
const
override
;
virtual
Scalar
GetNativeAspectRatio
()
override
;
virtual
void
UpdateSize
(
Scalar
newWidth
,
Scalar
newHeight
)
override
;
bool
mFlipHorizontally
;
bool
mFlipVertically
;
TextureUV
mMinUV
;
TextureUV
mMaxUV
;
};
}
}
#endif
File Metadata
Details
Attached
Mime Type
text/x-c++
Expires
Mon, May 19, 1:32 PM (16 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
76900
Default Alt Text
Image.h (1 KB)
Attached To
Mode
rEE Echo 3
Attached
Detach File
Event Timeline
Log In to Comment