Skip to content

Render class

Render.drawModule

Renders a hud module with text like fps counter (should only be called in "onDrawEvent")

Arguments:

  • string : text

Render.uploadImage

Uploads texture to the game

Arguments:

  • string : imageName
  • unsigned char * : pData
  • size_t : size

Render.drawText

Renders text on a screen

Arguments:

  • int : x
  • int : y
  • Color : color
  • string : text

Render.drawRect

Renders rect on screen

Arguments:

  • int : x
  • int : y
  • int : width
  • int : height
  • Color : color

Render.drawRectRounded

Renders rect on screen

Arguments:

  • int : x
  • int : y
  • int : width
  • int : height
  • Color : color
  • float : rounding