|
⇤ ← Revision 1 as of 2011-02-26 01:43:55
Size: 746
Comment: create page - 2/4 changeset 5189 (2/24 5397)
|
Size: 708
Comment: update content - w/ Sam; remove draft
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 3: | Line 3: |
| ||<tablewidth="100%" style="color: #FF0000;" :> DRAFT|| | |
| Line 6: | Line 5: |
| A hint that specifies a variable controlling whether updates to the SDL 1.2 screen surface should be synchronized with the vertical refresh, to avoid tearing. | A hint that specifies whether sync to vertical refresh is enabled or disabled in [[SDL_CreateRenderer]]() to avoid tearing. |
| Line 15: | Line 14: |
| By default SDL does not sync screen surface updates with vertical refresh. | By default SDL uses the flag passed into [[SDL_CreateRenderer]](). |
| Line 23: | Line 22: |
| ''You can add useful comments here'' | This hint overrides SDL_RENDERER_PRESENTVSYNC in [[SDL_CreateRenderer]](). |
| Line 25: | Line 24: |
| <<Color2(green,Should there be a remark linking back to SDL_SetVideoMode here?)>> | If framebuffer acceleration is enabled this will affect the surface returned by [[SDL_SetVideoMode]](). |
SDL_HINT_RENDER_VSYNC
A hint that specifies whether sync to vertical refresh is enabled or disabled in SDL_CreateRenderer() to avoid tearing.
Values
0 |
disable vsync |
1 |
enable vsync |
Default
By default SDL uses the flag passed into SDL_CreateRenderer().
Code Examples
You can add your code example here
Remarks
This hint overrides SDL_RENDERER_PRESENTVSYNC in SDL_CreateRenderer().
If framebuffer acceleration is enabled this will affect the surface returned by SDL_SetVideoMode().
