diff options
author | Mitchell Stokes <mogurijin@gmail.com> | 2013-07-30 02:36:51 +0400 |
---|---|---|
committer | Mitchell Stokes <mogurijin@gmail.com> | 2013-07-30 02:36:51 +0400 |
commit | 620323a12c1f8b8581a7687acf4d120b5a4bf3c5 (patch) | |
tree | a49539fadd015c101a84ab3a43e4444152a71272 /source/blender/makesdna/DNA_scene_types.h | |
parent | 29f8dfd37a2fbf4190e551bef0b04ff1ae1fd7b6 (diff) |
Missed a couple of files for the vsync commit (r58729).
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index 5e877ed697b..dd194ed389f 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -652,7 +652,8 @@ typedef struct GameData { short mode, matmode; short occlusionRes; /* resolution of occlusion Z buffer in pixel */ short physicsEngine; - short exitkey, pad; + short exitkey; + short vsync; /* Controls vsync: off, on, or adaptive (if supported) */ short ticrate, maxlogicstep, physubstep, maxphystep; short obstacleSimulation; short raster_storage; @@ -688,6 +689,11 @@ typedef struct GameData { #define RAS_STORE_VA 2 #define RAS_STORE_VBO 3 +/* vsync */ +#define VSYNC_OFF 0 +#define VSYNC_ON 1 +#define VSYNC_ADAPTIVE 2 + /* GameData.flag */ #define GAME_RESTRICT_ANIM_UPDATES (1 << 0) #define GAME_ENABLE_ALL_FRAMES (1 << 1) |