Fix code syntax

This commit is contained in:
Rob Loach
2022-09-27 17:06:31 -04:00
parent 6ae0e65903
commit 27749f9c65
2 changed files with 18 additions and 4 deletions

View File

@@ -107,14 +107,19 @@ class Font : public ::Font {
GETTERSETTER(int, BaseSize, baseSize)
GETTERSETTER(int, GlyphCount, glyphCount)
GETTERSETTER(int, GlyphPadding, glyphPadding)
//GETTERSETTER(::Texture2D, Texture, texture)
GETTERSETTER(::Rectangle*, Recs, recs)
GETTERSETTER(::GlyphInfo*, Glyphs, glyphs)
/**
* Get the texture atlas containing the glyphs.
*/
inline TextureUnmanaged GetTexture() {
return texture;
}
/**
* Set the texture atlas containing the glyphs.
*/
inline void SetTexture(const ::Texture& newTexture) {
texture = newTexture;
}

View File

@@ -4,6 +4,7 @@
#include "./raylib.hpp"
#include "./raylib-cpp-utils.hpp"
#include "./RaylibException.hpp"
#include "./TextureUnmanaged.hpp"
namespace raylib {
/**
@@ -22,7 +23,8 @@ class RenderTexture : public ::RenderTexture {
set(renderTexture);
}
RenderTexture(unsigned int id, const ::Texture& texture, const ::Texture& depth) : ::RenderTexture{id, texture, depth} {}
RenderTexture(unsigned int id, const ::Texture& texture, const ::Texture& depth) :
::RenderTexture{id, texture, depth} {}
/**
* Load texture for rendering (framebuffer)
@@ -42,18 +44,25 @@ class RenderTexture : public ::RenderTexture {
}
GETTERSETTER(unsigned int, Id, id)
//GETTERSETTER(::Texture2D, Texture, texture)
//GETTERSETTER(::Texture2D, Depth, depth)
/**
* Get the color buffer attachment texture.
*/
inline TextureUnmanaged GetTexture() {
return texture;
}
inline void SetTexture(const ::Texture& newTexture) {
texture = newTexture;
}
/**
* Depth buffer attachment texture
*/
inline TextureUnmanaged GetDepth() {
return depth;
}
inline void SetDepth(const ::Texture& newDepth) {
depth = newDepth;
}