Idris2Doc : IdrisGL.SDL.SDL_render

IdrisGL.SDL.SDL_render

(source)

Definitions

createRenderer : HasIOio=>Win->ioRenderer
  Create a 2D rendering context for a window.

Visibility: export
createTargetTexture : HasIOio=>Win->Renderer->ioTexture
  Create a texture as rendering target.

Visibility: export
setRenderTarget : HasIOio=>Renderer->Texture->io ()
  Set a texture as the rendering target.

Visibility: export
resetRenderTarget : HasIOio=>Renderer->io ()
  Reset a null pointer as the rendering target.

Visibility: export
setRenderDrawColor : HasIOio=>Renderer->Color->io ()
  Set the color used for drawing operations (Rect, Line and Clear).

Visibility: export
createTextureFromSur : HasIOio=>Renderer->Sur->ioTexture
  Create a texture from surface.

Visibility: export
renderClear : HasIOio=>Renderer->io ()
  Clear the rendering target with the drawing color.

Visibility: export
renderPresent : HasIOio=>Renderer->io ()
  Update the screen with any rendering performed since the previous call.

Visibility: export
renderCopy : HasIOio=>Renderer->Texture->Rect->io ()
  Copy a portion of the texture to the current rendering target.

Visibility: export
renderCopyEx : HasIOio=>Renderer->Texture->Rect->Double->Coordinate->FlipSetting->io ()
  Copy a portion of the texture to the current rendering, with optional rotation and flipping.
@ angle An angle in degrees that indicates the rotation in a clockwise direction.

Visibility: export
renderCopyExWin : HasIOio=>Win->Renderer->Texture->Double->Coordinate->FlipSetting->io ()
  Copy a portion of the texture to the current rendering, with optional rotation and flipping.
The difference between it and renderCopyEx is the size has been set to the window size.
@ angle An angle in degrees that indicates the rotation in a clockwise direction.

Visibility: export
freeRender : HasIOio=>Renderer->io ()
  Release sources of a renderer.

Visibility: export
renderFillRect : HasIOio=>Renderer->Rect->Color->io ()
  Fill a rectangle on the current rendering target with the drawing color.

Visibility: export
renderDrawRect : HasIOio=>Renderer->Rect->Color->io ()
  Draw a rectangle on the current rendering target.

Visibility: export
renderDrawLine : HasIOio=>Renderer->Coordinate->Coordinate->Color->io ()
  Draw a line on the current rendering target.

Visibility: export
renderDrawPoint : HasIOio=>Renderer->Coordinate->Color->io ()
  Draw a point on the current rendering target.

Visibility: export