GLRENDER: Difference between revisions

From QB64 Phoenix Edition Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 9: Line 9:
{{PageParameters}}
{{PageParameters}}
The {{Parameter|mode}} can be one of the following with the correspondence to the full '''_DISPLAYORDER''' statement:
The {{Parameter|mode}} can be one of the following with the correspondence to the full '''_DISPLAYORDER''' statement:
* ''_BEHIND'' - renders the OpenGL layer behind the software layer.
* ''_BEHIND'' - the OpenGL layer is placed behind the software layer.
** same as {{InlineCode}}{{Cl|_DISPLAYORDER}} _GLRENDER, _SOFTWARE, _HARDWARE, _HARDWARE1{{InlineCodeEnd}}
** same as {{InlineCode}}{{Cl|_DISPLAYORDER}} _GLRENDER, _SOFTWARE, _HARDWARE, _HARDWARE1{{InlineCodeEnd}}
* ''_ONTOP'' - renders the OpenGL layer on the top of the software layer (default).
* ''_ONTOP'' - the OpenGL layer is placed in front (on top) of the software layer ('''default''').
** same as {{InlineCode}}{{Cl|_DISPLAYORDER}} _SOFTWARE, _HARDWARE, _GLRENDER, _HARDWARE1{{InlineCodeEnd}}
** same as {{InlineCode}}{{Cl|_DISPLAYORDER}} _SOFTWARE, _HARDWARE, _GLRENDER, _HARDWARE1{{InlineCodeEnd}}
* ''_ONLY'' - renders the OpenGL layer only, may speed up display update, if you don't use the software layer.
* ''_ONLY'' - the OpenGL layer is the only one to be displayed, may speed up display update, if you don't use the software layer.
** same as {{InlineCode}}{{Cl|_DISPLAYORDER}} _GLRENDER{{InlineCodeEnd}}
** same as {{InlineCode}}{{Cl|_DISPLAYORDER}} _GLRENDER{{InlineCodeEnd}}
{{PageAvailability}}
<!-- QB64 = a version or none, QBPE = a version or all, Platforms = yes or no -->
<gallery widths="48px" heights="48px" mode="nolines">
File:Qb64.png|'''v1.0'''
File:Qbpe.png|'''all'''
File:Apix.png
File:Win.png|'''yes'''
File:Lnx.png|'''yes'''
File:Osx.png|'''yes'''
</gallery>
<!-- additional availability notes go below here -->





Latest revision as of 22:13, 28 September 2024

_GLRENDER is just a fancy _DISPLAYORDER, it's a convenience statement for the case you don't care about the harware image layers but only about the relation of the software and OpenGL layers. Both statements modify the same thing.


Syntax

_GLRENDER mode


Parameters

The mode can be one of the following with the correspondence to the full _DISPLAYORDER statement:

  • _BEHIND - the OpenGL layer is placed behind the software layer.
    • same as _DISPLAYORDER _GLRENDER, _SOFTWARE, _HARDWARE, _HARDWARE1
  • _ONTOP - the OpenGL layer is placed in front (on top) of the software layer (default).
    • same as _DISPLAYORDER _SOFTWARE, _HARDWARE, _GLRENDER, _HARDWARE1
  • _ONLY - the OpenGL layer is the only one to be displayed, may speed up display update, if you don't use the software layer.


Availability


See also



Navigation:
Main Page with Articles and Tutorials
Keyword Reference - Alphabetical
Keyword Reference - By usage
Report a broken link