addition + correct drawing modes

This commit is contained in:
arthur.jamet
2021-06-02 14:33:52 +02:00
parent 1cc6907ff0
commit ef0c323d94
8 changed files with 38 additions and 18 deletions
+5
View File
@@ -167,3 +167,8 @@ void RAY::Window::setIcon(RAY::Image &img)
{
SetWindowIcon(img);
}
bool RAY::Window::isReady() const
{
return IsWindowReady();
}
+3 -1
View File
@@ -7,7 +7,7 @@
#ifndef WINDOW_HPP_
#define WINDOW_HPP_
#define INTERNAL public
#include <raylib.h>
#include <string>
#include <optional>
@@ -131,6 +131,8 @@ namespace RAY {
//! @brief Draw a 3d mesh with material and transform
void draw(const Mesh &mesh, const Material &material, const Matrix &transform);
bool isReady() const;
private:
//! @brief Creates window, and opens it if openNow is set to true