GLSL Hacker
FEATURES DOWNLOAD GALLERY BLOG LEARN



Back to Reference 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"
  gl_core_profile="0"
  gl_debug_profile="0"
  width="800"
  height="600"
  shared_window=""
  fullscreen="0"
  sw_renderer="0"
  alpha="0"
  >
</window>


<window>

Description

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


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
  • gl_core_profile [INTEGER]: creates an OpenGL 3+ context with core profile (On OSX, there's only a core profile). - Default value = 0
  • gl_debug_profile [INTEGER]: creates an OpenGL 3+ context with debug bit enabled. - Default value = 0
  • 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
  • sw_renderer [INTEGER]: Uses APPLE software renderer. Mac OS X only. - Default value = 0
  • alpha [REAL]: Sets the alpha value of the window from 0.0 (fully transparent) to 1.0 (fully opaque). Mac OS X only. - 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>

2013-2015 Geeks3D. All Rights Reserved.

.:- G3D Network -:.