Skip to content

Window Component

Twarit Waikar edited this page Aug 2, 2018 · 5 revisions

Rubeus uses GLFW to handle operating system related window generation and instructs GLFW to initialise the window to be used for OpenGL drawings.

Usage in C++:

RWindowComponent * GameWindow = new RWindowComponent("Hello World",                           // Window title
						      1280, 720,                              // Resolution
			            		      EWindowParameters::WINDOWED_MODE,       // Windowed mode or
                                                                                                 fullscreen
					              EWindowParameters::NON_RESIZABLE_WINDOW,// Non resizable window. 
                                                                                                 Available only when
                                                                                                 windowed mode is active
				 		      0                                       /* FPS limit. If required
                                                                                                 FPS is x then use 60/x */
);