Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
|
#include <qssgdebugdrawsystem_p.h>
Public Member Functions | |
QSSGDebugDrawSystem () | |
~QSSGDebugDrawSystem () | |
bool | hasContent () const |
void | drawLine (const QVector3D &startPoint, const QVector3D &endPoint, const QColor &color, bool isPersistent=false) |
void | drawBounds (const QSSGBounds3 &bounds, const QColor &color, bool isPersistent=false) |
void | drawPoint (const QVector3D &vertex, const QColor &color, bool isPersistent=false) |
void | prepareGeometry (QSSGRhiContext *rhiCtx, QRhiResourceUpdateBatch *rub) |
void | recordRenderDebugObjects (QSSGRhiContext *rhiCtx, QSSGRhiGraphicsPipelineState *ps, QRhiShaderResourceBindings *srb, QRhiRenderPassDescriptor *rpDesc) |
void | setEnabled (bool v) |
bool | isEnabled () const |
Friends | |
class | QSSGLayerRenderData |
Definition at line 30 of file qssgdebugdrawsystem_p.h.
QT_BEGIN_NAMESPACE QSSGDebugDrawSystem::QSSGDebugDrawSystem | ( | ) |
Definition at line 13 of file qssgdebugdrawsystem.cpp.
QSSGDebugDrawSystem::~QSSGDebugDrawSystem | ( | ) |
Definition at line 18 of file qssgdebugdrawsystem.cpp.
void QSSGDebugDrawSystem::drawBounds | ( | const QSSGBounds3 & | bounds, |
const QColor & | color, | ||
bool | isPersistent = false ) |
Definition at line 40 of file qssgdebugdrawsystem.cpp.
void QSSGDebugDrawSystem::drawLine | ( | const QVector3D & | startPoint, |
const QVector3D & | endPoint, | ||
const QColor & | color, | ||
bool | isPersistent = false ) |
Definition at line 28 of file qssgdebugdrawsystem.cpp.
References line.
void QSSGDebugDrawSystem::drawPoint | ( | const QVector3D & | vertex, |
const QColor & | color, | ||
bool | isPersistent = false ) |
Definition at line 51 of file qssgdebugdrawsystem.cpp.
bool QSSGDebugDrawSystem::hasContent | ( | ) | const |
Definition at line 23 of file qssgdebugdrawsystem.cpp.
|
inline |
Definition at line 57 of file qssgdebugdrawsystem_p.h.
void QSSGDebugDrawSystem::prepareGeometry | ( | QSSGRhiContext * | rhiCtx, |
QRhiResourceUpdateBatch * | rub ) |
Definition at line 61 of file qssgdebugdrawsystem.cpp.
References QRhiBuffer::Immutable, QRhiBuffer::IndexBuffer, QRhiCommandBuffer::IndexUInt32, line, QByteArrayLiteral, QRhiBuffer::VertexBuffer, and vertexData.
void QSSGDebugDrawSystem::recordRenderDebugObjects | ( | QSSGRhiContext * | rhiCtx, |
QSSGRhiGraphicsPipelineState * | ps, | ||
QRhiShaderResourceBindings * | srb, | ||
QRhiRenderPassDescriptor * | rpDesc ) |
Definition at line 125 of file qssgdebugdrawsystem.cpp.
References cb, QSSGRhiContext::commandBuffer(), QSSGRhiGraphicsPipelineState::cullMode, QSSGRhiGraphicsPipelineState::DepthTestEnabled, QSSGRhiGraphicsPipelineState::DepthWriteEnabled, QSSGRhiGraphicsPipelineState::flags, QRhiVertexInputAttribute::Float3, QSSGRhiInputAssemblerStatePrivate::get(), QSSGRhiContextPrivate::get(), QRhiGraphicsPipeline::Lines, QRhiGraphicsPipeline::None, QRhiGraphicsPipeline::Points, and QSSGRhiGraphicsPipelineState::viewport.
void QSSGDebugDrawSystem::setEnabled | ( | bool | v | ) |
Definition at line 177 of file qssgdebugdrawsystem.cpp.
|
friend |
Definition at line 60 of file qssgdebugdrawsystem_p.h.