Quick Links
- Homepage
- Downloads
- Code Sample Pack
- Gallery
- Forum

Documentation
- Overview
- GLSL Programs
- Live Coding
- Hack your first
  GLSL program

- Reference guide

Follow GLSL Hacker

GLSL Hacker @ Twitter

GLSL Hacker

Reference Guide
XML Nodes



» Back to homepage
» Back to Developer's Guide Index

<window> XML Node


XML Node Summary
<window
  name=""
  layer="0"
  title=""
  build_opengl_extensions_list="1"
  display_progress_bar="0"
  gl_version_major="2"
  gl_version_minor="1"
  width="800"
  height="600"
  shared_window=""
  fullscreen="0"
  >
</window>


<window>

Description
Describes the window in which the 3D scene will be rendered.

window element has 11 attributes and 0 sub-element(s)

Attributes
  • name [STRING]: name of the window.
  • layer [INTEGER]: layer of the window. The notion of layer allows to group gpu program and scripts nodes by window. - Default value = 0
  • title [STRING]: title of the window.
  • build_opengl_extensions_list [INTEGER]: builds (1) or not (0) the OpenGL extensions list at window initialization. - Default value = 1
  • display_progress_bar [INTEGER]: displays the progress bar during INIT scripts. You can control the size of the progress bar in INIT scripts with gh_utils.set_progress_bar_percent() - Default value = 0
  • gl_version_major [INTEGER]: specifies the major version of the OpenGL rendering context. - Default value = 2
  • gl_version_minor [INTEGER]: specifies the minor version of the OpenGL rendering context. - Default value = 1
  • width [INTEGER]: width of the window. - Default value = 800
  • height [INTEGER]: height of the window. - Default value = 600
  • shared_window [STRING]: specifies the name of another window in order to share the rendering context.
  • fullscreen [INTEGER]: sets the fullscreen mode: 1=fullscreen, 0=windowed. - Default value = 0

Code sample :

<glsl_hacker>

<window name="win3d01" title="Geometry Instancing (OpenGL 3.3+)"
width="800" height="400" display_progress_bar="1"
gl_version_major="3" gl_version_minor="2"
build_opengl_extensions_list="0" />

</glsl_hacker>


(C)2012 Geeks3D