mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-07 05:57:47 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,49 @@
|
||||
/* Copyright 2003-2005 ROBLOX Corporation, All Rights Reserved */
|
||||
#pragma once
|
||||
|
||||
#include "Util/G3DCore.h"
|
||||
|
||||
namespace G3D {
|
||||
class RenderDevice;
|
||||
}
|
||||
|
||||
namespace RBX
|
||||
{
|
||||
class Rect;
|
||||
|
||||
class DrawPrimitives {
|
||||
public:
|
||||
static void rawBox(
|
||||
const AABox& box,
|
||||
G3D::RenderDevice* rd);
|
||||
|
||||
static void rawSphere(
|
||||
float radius,
|
||||
G3D::RenderDevice* rd);
|
||||
|
||||
static void rawCylinderAlongX(
|
||||
float radius,
|
||||
float axis,
|
||||
G3D::RenderDevice* rd,
|
||||
bool cap);
|
||||
|
||||
// generic 2d - must be in 2d mode
|
||||
static void rect2d(
|
||||
const RBX::Rect& rect,
|
||||
G3D::RenderDevice* rd,
|
||||
const G3D::Color4& color = G3D::Color3::white());
|
||||
|
||||
static void line2d(
|
||||
const G3D::Vector2& p0,
|
||||
const G3D::Vector2& p1,
|
||||
G3D::RenderDevice* rd,
|
||||
const G3D::Color4& color = G3D::Color3::white());
|
||||
|
||||
static void outlineRect2d(
|
||||
const RBX::Rect& rect,
|
||||
float thick,
|
||||
G3D::RenderDevice* rd,
|
||||
const G3D::Color4& color = G3D::Color3::blue());
|
||||
|
||||
};
|
||||
} // namespace
|
||||
Reference in New Issue
Block a user