struct ffw::RenderWindowArgs
Class List > ffw :: RenderWindowArgs
Public Attributes
Type | Name |
---|---|
ClientGLAPI | glApi Which OpenGL API to use? |
ClientGLProfile | glProfile Which OpenGL profile to use? |
Vec2< int > | pos Position of the window, set to [-1, -1] for the OS to decide. |
Vec2< int > | size Size of the window. |
std::string | title UTF-8 encoded title. |
bool | resizable Can the user resize the window? |
bool | border Does the window have a border? |
bool | maximize Can the user maximize the window? |
bool | floating Should the window be always on top? |
bool | focused Should the window be automatically focused on creation? |
bool | visible Should the window be visible? |
int | samples Antialiasing samples, has to be in power of two. |
const unsigned char * | iconPtr Pointer to an array of pixels to be used as window icon (can be null) |
int | iconWidth Window icon width. |
int | iconHeight Window icon height. |
Vec2< int > | contextVersion Context client API version. |
Public Functions
Type | Name |
---|---|
void | setCore () Sets the core profile to CORE and the context version to 3.3. |
Public Attributes Documentation
variable glApi
ClientGLAPI ffw::RenderWindowArgs::glApi;
Which OpenGL API to use?
variable glProfile
ClientGLProfile ffw::RenderWindowArgs::glProfile;
Which OpenGL profile to use?
variable pos
Vec2<int> ffw::RenderWindowArgs::pos;
Position of the window, set to [-1, -1] for the OS to decide.
variable size
Vec2<int> ffw::RenderWindowArgs::size;
Size of the window.
variable title
std::string ffw::RenderWindowArgs::title;
UTF-8 encoded title.
variable resizable
bool ffw::RenderWindowArgs::resizable;
Can the user resize the window?
variable border
bool ffw::RenderWindowArgs::border;
Does the window have a border?
variable maximize
bool ffw::RenderWindowArgs::maximize;
Can the user maximize the window?
variable floating
bool ffw::RenderWindowArgs::floating;
Should the window be always on top?
variable focused
bool ffw::RenderWindowArgs::focused;
Should the window be automatically focused on creation?
variable visible
bool ffw::RenderWindowArgs::visible;
Should the window be visible?
variable samples
int ffw::RenderWindowArgs::samples;
Antialiasing samples, has to be in power of two.
variable iconPtr
const unsigned char* ffw::RenderWindowArgs::iconPtr;
Pointer to an array of pixels to be used as window icon (can be null)
Note:
The array must be 32bit image (8bit RGBA)
variable iconWidth
int ffw::RenderWindowArgs::iconWidth;
Window icon width.
variable iconHeight
int ffw::RenderWindowArgs::iconHeight;
Window icon height.
variable contextVersion
Vec2<int> ffw::RenderWindowArgs::contextVersion;
Context client API version.
Set the x and y values of this vector to set the target context version, where x = major and y = minor. Default value is (0, 0) which will not set any version. For example, settings this vector to (3, 3) will set the client API (OpenGL) to 3.3.0
Note:
Settings x (major) to zero will not do anything.
Public Functions Documentation
function setCore
void ffw::RenderWindowArgs::setCore ()
Sets the core profile to CORE and the context version to 3.3.
The documentation for this class was generated from the following file: include/ffw/graphics/renderwindow.h