renderTextbox

fun renderTextbox(text: <Error class: unknown class>, xPos: Float, yPos: Float, buffer: Float, color: Color = defaultTextBoxColor, frameColor: Color = defaultFrameColor)

Render a textbox for given string at given position.

This gets used by buttons internally, so unless you want to manually display text, you won't need to use this.

Parameters

text

string to surround by textbox

xPos

position where you will draw the string

yPos

position where you will draw the string

buffer

additional space

color

background color of the textbox

frameColor

color of the surrounding frame