Abstract
Protected
currentProtected
currentProtected
debugProtected
debugProtected
debugProtected
frameProtected
performanceProtected
performanceProtected
physicsProtected
renderProtected
statisticsProtected
transformProtected
viewportProtected
Abstract
applyBegin a new frame - call this before any drawing operations 开始新帧 - 在任何绘制操作之前调用
Clear all performance measurements 清除所有性能测量
Log debug message with optional color 记录带可选颜色的调试消息
Optional
color: ColorAbstract
disposeDispose of renderer resources 释放渲染器资源
Draw acceleration vector 绘制加速度向量
Draw angular velocity indicator 绘制角速度指示器
Draw an arrow from start to end point 从起点到终点绘制箭头
Optional
headSize: FixedDraw coordinate axes at origin 在原点绘制坐标轴
Draw body AABB (Axis-Aligned Bounding Box) 绘制刚体AABB(轴对齐边界框)
Draw body transform (position and rotation) 绘制刚体变换(位置和旋转)
Draw box collider 绘制盒形碰撞器
Draw body center of mass 绘制刚体质心
Draw a circle at the specified center with given radius 在指定中心绘制给定半径的圆
Draw circle collider 绘制圆形碰撞器
Draw a collider/fixture 绘制碰撞器/夹具
Draw contact impulse 绘制接触冲量
Draw contact normal 绘制接触法线
Draw a cross-hair at the specified position 在指定位置绘制十字线
Draw debug text at world position 在世界位置绘制调试文本
Optional
color: ColorDraw debug text at screen position 在屏幕位置绘制调试文本
Optional
color: ColorDraw edge collider 绘制边缘碰撞器
Draw an ellipse within the specified bounds 在指定边界内绘制椭圆
Protected
drawDraw forces acting on a body 绘制作用在刚体上的力
Protected
drawDraw a joint 绘制关节
Draw joint anchors 绘制关节锚点
Draw joint limits (for revolute/prismatic joints) 绘制关节限制(用于旋转/平移关节)
Draw a line between two points 在两点之间绘制线条
Draw physics statistics overlay 绘制物理统计覆盖层
Draw a polygon defined by vertices 绘制由顶点定义的多边形
Draw polygon collider 绘制多边形碰撞器
Draw a rectangle with the specified bounds 绘制指定边界的矩形
Draw a rigid body with all its fixtures 绘制刚体及其所有夹具
Draw text at the specified position 在指定位置绘制文本
Draw a texture at the specified position 在指定位置绘制纹理
Optional
style: TextureStyleDraw a portion of a texture (sprite from atlas) 绘制纹理的一部分(从图集中的精灵)
Optional
style: TextureStyleDraw vector arrow 绘制向量箭头
Optional
scale: FixedDraw velocity vector 绘制速度向量
End the current frame and present to screen 结束当前帧并呈现到屏幕
End measuring performance for a named operation 结束测量命名操作的性能
Protected
Abstract
extractProtected
Abstract
extractProtected
Abstract
extractGet the current combined transform 获取当前组合变换
Get debug configuration 获取调试配置
Get the current debug mode 获取当前调试模式
Get performance measurements 获取性能测量结果
Get physics debug configuration 获取物理调试配置
Get renderer information 获取渲染器信息
Get the current render state 获取当前渲染状态
Abstract
getGet the current render target 获取当前渲染目标
Get rendering statistics for the current frame 获取当前帧的渲染统计信息
Protected
getGet the current viewport 获取当前视口
Protected
incrementProtected
incrementMeasure text dimensions without drawing 测量文本尺寸而不绘制
Protected
Abstract
onProtected
Abstract
onProtected
onProtected
onProtected
Abstract
onProtected
Abstract
onProtected
Abstract
onProtected
Abstract
onProtected
Abstract
onProtected
Abstract
onProtected
Abstract
onOptional
style: TextureStyleProtected
Abstract
onOptional
style: TextureStyleProtected
Abstract
onProtected
Abstract
onProtected
Abstract
onProtected
onProtected
Abstract
onProtected
Abstract
onProtected
Abstract
onProtected
Abstract
onProtected
Abstract
onPop render state from stack 从栈弹出渲染状态
Pop the last transform from the transform stack 从变换栈弹出最后一个变换
Push current render state onto stack 将当前渲染状态推入栈
Reset statistics counters 重置统计计数器
Protected
screenEnable/disable debug logging 启用/禁用调试日志
Abstract
setSet the render target (null for screen) 设置渲染目标(null表示屏幕)
Set the view matrix for camera transformation 设置用于相机变换的视图矩阵
Start measuring performance for a named operation 开始测量命名操作的性能
Check if the renderer supports a specific feature 检查渲染器是否支持特定功能
Take a screenshot of the current frame 截取当前帧的屏幕截图
Protected
transform
Abstract base physics debug renderer class 抽象基础物理调试渲染器类