Module necro.render.Render

Functions

drawTextInWorld (args) Deprecated
getBuffer (bufferID)
getTransform (transformID)
getVideoLatency ()
objectRect (x, y, w, h)
setTransform (transformID, matrix)
tileCenter (x, y)
tileCorner (x, y, corner)
tileRect (x, y, w, h)
tileRenderingOrigin (x, y) Returns the rendering origin for the given tile

Tables

Buffer
Corner
Group
Transform


Functions

drawTextInWorld (args)
Deprecated

Parameters:

  • args
getBuffer (bufferID)

Parameters:

  • bufferID integer

Returns:

    VertexBuffer
getTransform (transformID)

Parameters:

  • transformID
getVideoLatency ()
objectRect (x, y, w, h)

Parameters:

  • x
  • y
  • w
  • h
setTransform (transformID, matrix)

Parameters:

  • transformID
  • matrix
tileCenter (x, y)

Parameters:

  • x
  • y
tileCorner (x, y, corner)

Parameters:

  • x
  • y
  • corner
tileRect (x, y, w, h)

Parameters:

  • x
  • y
  • w
  • h
tileRenderingOrigin (x, y)
Returns the rendering origin for the given tile

Parameters:

  • x
  • y

Tables

Buffer

Fields:

  • WALL 1 - Z-ordered in-game visuals
  • OBJECT 2
  • SHADOW 3
  • PARTICLE 4
  • ATTACHMENT 5
  • TEXT_LABEL 6
  • SWIPE_BACK 7
  • CUSTOM 8 - Z-ordered, camera-transformed render buffer for mods
  • FLOOR 9 - Non-Z-ordered in-game visuals
  • MERGE_TARGET_GAME 10 - Merge target - cannot be drawn to directly
  • HEALTH_BAR 11
  • TEXT_LABEL_FRONT 12
  • SWIPE 13
  • PLAYER_NAME 14
  • FLYAWAY 15
  • OVERLAY 16
  • LEGACY 17 - Legacy game render buffer (system.game.Graphics)
  • UI_BEAT_BARS 18 - UI visuals
  • UI_HUD 19
  • UI_BOSS_SPLASH 20
  • UI_LOBBY 21
  • UI_MENU 22
  • UI_CHAT 23
  • UI_LEGACY 24 - Legacy UI render buffer (system.game.Graphics)
  • UI_CUSTOM 25 - Unordered, camera-independent render buffer for mods
  • UI_OVERLAY 26
  • UI_DEBUG_OBJECTS 27 - For camera-transformed debug visuals
  • UI_DEBUG 28
Corner

Fields:

  • TOP_LEFT { -0.5, -0.5 }
  • TOP_RIGHT { 0.5, -0.5 }
  • BOTTOM_LEFT { -0.5, 0.5 }
  • BOTTOM_RIGHT { -0.5, 0.5 }
  • CENTER { 0, 0 }
Group

Fields:

  • GAME 1
Transform

Fields:

  • NONE 0
  • CAMERA 1
  • UI 2
generated by LDoc 1.4.6