User Tools

Site Tools


hpl3:game:gui

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
hpl3:game:gui [2013/11/04 09:57]
thomas [Note on Graphics]
hpl3:game:gui [2013/11/04 10:04]
thomas [State Variables]
Line 108: Line 108:
  
 <code c++> <code c++>
-cColor = cColor(1,​1)*ImGui_FadeOscillateFloat("​pulse",​1.0f,​ 0.25f,1);+cColor ​col = cColor(1,​1)*ImGui_FadeOscillateFloat("​pulse",​1.0f,​ 0.25f,1);
 </​code>​ </​code>​
 ===== Timers ===== ===== Timers =====
Line 143: Line 143:
 </​code>​ </​code>​
 This will make each frame play for 0.1 seconds. (default setting is 1). This will make each frame play for 0.1 seconds. (default setting is 1).
-**Note on Graphics** 
  
-  ​The size limit is 510x510. (1 pixel borders need for images). +**Note on Graphics** 
-  * You should NOT use the normal ​graphics for larger images ​though as it is in effective. It is meant to be for smaller images so that you can batch the graphics (making it possible to draw most of the gui in 2-3 draw calls). If you need large images, use textures! Here you can easily go up to 1024x1024 (and beyond, should it be needed).+  * For non-texture graphics the size limit is 510x510. (1 pixel borders need for images). 
 +  * Generally, ​You should NOT use the non-texture ​graphics for larger images. It is meant to be for smaller images so that you can batch the graphics (making it possible to draw most of the gui in 2-3 draw calls). If you need large images, use textures! Here you can easily go up to 1024x1024 (and beyond, should it be needed).
 ===== Custom Widgets ===== ===== Custom Widgets =====
  
hpl3/game/gui.txt · Last modified: 2015/09/17 10:14 by ian.thomas