载入中...
搜索中...
未找到
WorldDebugDraw.cpp
浏览该文件的文档.
37 void DrawSolidPolygon(const b2Vec2 *vertices, int32 vertexCount, const b2Color &color) override {
45 void DrawSolidCircle(const b2Vec2 ¢er, float32 radius, const b2Vec2 & /*axis*/, const b2Color &color) override {
51 canvas_->drawLine({p1.x * meter_, p1.y * meter_}, {p2.x * meter_, p2.y * meter_}, strokePaint(color));
74 for (int32 i = 0; i < vertexCount; ++i) points.emplace_back(vertices[i].x * meter_, vertices[i].y * meter_);
Definition Graphics.h:125
virtual void drawPrimitiveCanvas(const PrimitiveCanvas2D &canvas)=0
Resolves and queues one frame-local primitive Canvas.
Frame-local Skia-style recorder for 2D line primitives.
Definition PrimitiveDrawList.h:52
void drawDebug(graphics::Graphics *gfx)
Optional: draw fixture AABBs via Graphics::drawSolidRect.
Definition WorldDebugDraw.cpp:117
b2World * raw()
Exposes the underlying Box2D world for tightly-scoped backend integration.
Definition World.h:378
@ FillAndStroke
@ Stroke
eve::Color Color
RGBA color used by every graphics draw call. Lives inside eve::graphics so including a graphics heade...
Definition Color.h:13
glm::vec4 Color
Render-neutral RGBA color shared by graphics-facing modules.
Definition RenderTypes.h:8