Files
tyra-linux/engine/inc/renderer/3d/renderer_3d_utility.hpp
T
2022-08-15 01:37:24 +02:00

45 lines
1.1 KiB
C++

/*
# _____ ____ ___
# | \/ ____| |___|
# | | | \ | |
#-----------------------------------------------------------------------
# Copyright 2022, tyra - https://github.com/h4570/tyra
# Licensed under Apache License 2.0
# Sandro Sobczyński <sandro.sobczynski@gmail.com>
*/
#pragma once
#include "math/vec4.hpp"
#include "renderer/models/color.hpp"
#include "renderer/core/3d/bbox/core_bbox.hpp"
#include "../core/renderer_core.hpp"
namespace Tyra {
/** Debug functions, with bad performance. */
class Renderer3DUtility {
public:
Renderer3DUtility();
~Renderer3DUtility();
void init(RendererCore* core);
void drawPoint(const Vec4& v);
void drawPoint(const Vec4& v, const Color& color);
void drawLine(const Vec4& from, const Vec4& to);
void drawLine(const Vec4& from, const Vec4& to, const Color& color);
void drawBBox(const CoreBBox& v);
void drawBBox(const CoreBBox& v, const Color& color);
private:
RendererCore* core;
prim_t basePrim;
color_t baseColor;
};
} // namespace Tyra