Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 223

Questions about OpenGL (Open Graphics Library) OpenGL is an API used to render real-time 2D and 3D graphics. Blender uses OpenGL for drawing the user interface, 3D view, and the game engine.

10 votes
Accepted

Draw geometry on screen using BGL module

All the available OpenGL calls exposed in the bgl API are: https://www.blender.org/api/blender_python_api_current/bgl.html (or in https://svn.blender.org/svnroot/bf-blender/trunk/blender/source/blender … /python/generic/bgl.c without the gl prefix) It has a few OpenGL 2.0 calls, but not even all I think. …
dfelinto's user avatar
  • 453
5 votes
Accepted

Can I access the render screen size in a custom filter 2D in the game engine?

All the game properties stored in the object that calls the Filter 2D are passed to the shader as uniforms. So if you have a width and a height float game properties you can set their values at run-ti …
dfelinto's user avatar
  • 453