Added custom frame control functions to rcore.go
Added SwapScreenBuffer() and PollInputEvents into rcore.go with corresponding comments To use them it's necessary to build with CGO_CFLAGS="-DSUPPORT_CUSTOM_FRAME_CONTROL=1" Also added more info in the raylib_purego.go file for theses two functions in order to inform that the dll must be recompiled
This commit is contained in:
parent
278df68f40
commit
4523bcd71d
2 changed files with 21 additions and 0 deletions
|
@ -1492,6 +1492,11 @@ func GetFPS() int32 {
|
|||
return getFPS()
|
||||
}
|
||||
|
||||
// Custom frame control functions
|
||||
// NOTE: SwapScreenBuffer and PollInputEvents are intended for advanced users that want full control over the frame processing
|
||||
// By default EndDrawing() does this job: draws everything + SwapScreenBuffer() + manage frame timing + PollInputEvents()
|
||||
// To avoid that behaviour and control frame processes manually you must recompile raylib with SUPPORT_CUSTOM_FRAME_CONTROL enabled in config.h
|
||||
|
||||
// SwapScreenBuffer - Swap back buffer with front buffer (screen drawing)
|
||||
func SwapScreenBuffer() {
|
||||
swapScreenBuffer()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue