Date: Tue, 13 Dec 2022 11:42:33 -0500
Subject: [PATCH] v4.2.7
---
CMakeLists.txt | 2 +-
clib.json | 2 +-
docs/_font_8hpp_source.html | 324 ++++++++---------
docs/_sound_8hpp_source.html | 202 ++++++-----
docs/_texture_unmanaged_8hpp_source.html | 380 ++++++++++----------
docs/_vector2_8hpp_source.html | 271 +++++++-------
docs/_wave_8hpp_source.html | 103 +++---
docs/_window_8hpp_source.html | 8 +-
docs/classraylib_1_1_font.html | 36 +-
docs/classraylib_1_1_sound.html | 16 +-
docs/classraylib_1_1_texture_unmanaged.html | 34 +-
docs/classraylib_1_1_vector2-members.html | 88 ++---
docs/classraylib_1_1_vector2.html | 24 ++
docs/classraylib_1_1_wave.html | 16 +-
docs/classraylib_1_1_window-members.html | 2 +-
docs/classraylib_1_1_window.html | 8 +-
docs/functions_c.html | 7 +-
docs/functions_d.html | 5 +-
docs/functions_e.html | 3 +
docs/functions_func_c.html | 7 +-
docs/functions_func_d.html | 5 +-
docs/functions_func_e.html | 3 +
docs/functions_func_g.html | 2 +-
docs/functions_func_i.html | 3 +
docs/functions_func_t.html | 5 +-
docs/functions_g.html | 2 +-
docs/functions_i.html | 3 +
docs/functions_t.html | 3 +
docs/search/all_10.js | 264 +++++++-------
docs/search/all_11.js | 55 +--
docs/search/all_12.js | 20 +-
docs/search/all_13.js | 8 +-
docs/search/all_14.js | 6 +-
docs/search/all_15.js | 2 +-
docs/search/all_16.js | 14 +-
docs/search/all_2.js | 35 +-
docs/search/all_3.js | 43 +--
docs/search/all_4.js | 13 +-
docs/search/all_5.js | 21 +-
docs/search/all_6.js | 294 +++++++--------
docs/search/all_7.js | 4 +-
docs/search/all_8.js | 47 +--
docs/search/all_9.js | 2 +-
docs/search/all_a.js | 42 +--
docs/search/all_b.js | 30 +-
docs/search/all_c.js | 4 +-
docs/search/all_d.js | 42 +--
docs/search/all_e.js | 10 +-
docs/search/all_f.js | 32 +-
docs/search/classes_0.js | 4 +-
docs/search/classes_1.js | 2 +-
docs/search/classes_2.js | 6 +-
docs/search/classes_3.js | 2 +-
docs/search/classes_4.js | 2 +-
docs/search/classes_5.js | 2 +-
docs/search/classes_6.js | 14 +-
docs/search/classes_7.js | 10 +-
docs/search/classes_8.js | 4 +-
docs/search/classes_9.js | 8 +-
docs/search/classes_a.js | 8 +-
docs/search/classes_b.js | 4 +-
docs/search/functions_0.js | 22 +-
docs/search/functions_1.js | 6 +-
docs/search/functions_10.js | 260 +++++++-------
docs/search/functions_11.js | 49 +--
docs/search/functions_12.js | 20 +-
docs/search/functions_13.js | 6 +-
docs/search/functions_14.js | 2 +-
docs/search/functions_15.js | 14 +-
docs/search/functions_2.js | 49 +--
docs/search/functions_3.js | 43 +--
docs/search/functions_4.js | 13 +-
docs/search/functions_5.js | 16 +-
docs/search/functions_6.js | 292 +++++++--------
docs/search/functions_7.js | 4 +-
docs/search/functions_8.js | 47 +--
docs/search/functions_9.js | 2 +-
docs/search/functions_a.js | 42 +--
docs/search/functions_b.js | 22 +-
docs/search/functions_c.js | 4 +-
docs/search/functions_d.js | 42 +--
docs/search/functions_e.js | 10 +-
docs/search/functions_f.js | 24 +-
docs/search/namespaces_0.js | 2 +-
docs/search/pages_0.js | 2 +-
docs/search/variables_0.js | 2 +-
docs/search/variables_1.js | 4 +-
docs/search/variables_2.js | 2 +-
docs/search/variables_3.js | 2 +-
89 files changed, 1867 insertions(+), 1754 deletions(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3aa8b765..8b41c32e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,7 +1,7 @@
cmake_minimum_required(VERSION 3.11)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
project (raylib_cpp
- VERSION 4.2.6
+ VERSION 4.2.7
DESCRIPTION "raylib-cpp C++ Object Oriented Wrapper for raylib"
HOMEPAGE_URL "https://github.com/robloach/raylib-cpp"
LANGUAGES C CXX
diff --git a/clib.json b/clib.json
index fd238211..ef09962e 100644
--- a/clib.json
+++ b/clib.json
@@ -1,6 +1,6 @@
{
"name": "raylib-cpp",
- "version": "4.2.5",
+ "version": "4.2.7",
"repo": "RobLoach/raylib-cpp",
"description": "raylib-cpp: C++ Object-Oriented Wrapper for raylib",
"homepage": "https://github.com/robloach/raylib-cpp",
diff --git a/docs/_font_8hpp_source.html b/docs/_font_8hpp_source.html
index c46ecb36..d3b8a7cb 100644
--- a/docs/_font_8hpp_source.html
+++ b/docs/_font_8hpp_source.html
@@ -137,173 +137,177 @@
-
-
-
- 107 GETTERSETTER(
int, BaseSize, baseSize)
- 108 GETTERSETTER(
int, GlyphCount, glyphCount)
- 109 GETTERSETTER(
int, GlyphPadding, glyphPadding)
-
- 111 GETTERSETTER(::GlyphInfo*, Glyphs, glyphs)
-
-
-
-
-
-
- 124 texture = newTexture;
-
-
- 127 Font& operator=(const ::Font& font) {
-
-
-
-
-
- 133 Font& operator=(
const Font&) =
delete;
-
- 135 Font& operator=(
Font&& other) noexcept {
- 136 if (
this == &other) {
-
-
-
-
-
-
-
- 144 other.glyphCount = 0;
- 145 other.glyphPadding = 0;
-
- 147 other.recs =
nullptr;
- 148 other.glyphs =
nullptr;
-
-
-
-
- 162 void Load(
const std::string& fileName) {
-
-
- 165 throw new RaylibException(
"Failed to load Font with from file: " + fileName);
-
-
-
- 179 void Load(
const std::string& fileName,
int fontSize,
int* fontChars,
int charCount) {
- 180 set(::
LoadFontEx(fileName.c_str(), fontSize, fontChars, charCount));
-
- 182 throw new RaylibException(
"Failed to load Font with from file with font size: " + fileName);
-
-
-
- 186 void Load(const ::Image& image, ::
Color key,
int firstChar) {
- 187 set(::LoadFontFromImage(image, key, firstChar));
-
-
-
-
-
- 193 void Load(
const std::string& fileType,
const unsigned char* fileData,
int dataSize,
int fontSize,
- 194 int *fontChars,
int charsCount) {
- 195 set(::LoadFontFromMemory(fileType.c_str(), fileData, dataSize, fontSize, fontChars,
-
-
- 198 throw new RaylibException(
"Failed to load Font " + fileType +
" with from file data");
-
-
-
-
-
-
-
-
- 213 float spacing, ::
Color tint = WHITE)
const {
- 214 ::DrawTextEx(*
this, text.c_str(), position, fontSize, spacing, tint);
-
-
- 220 inline void DrawText(
const std::string& text,
int posX,
int posY,
float fontSize,
- 221 float spacing, ::
Color tint = WHITE)
const {
-
- 223 { static_cast<float>(posX), static_cast<float>(posY) },
- 224 fontSize, spacing, tint);
-
-
-
- 228 const std::string& text,
-
-
-
-
-
- 234 ::
Color tint = WHITE)
const {
-
-
-
-
-
-
-
-
-
- 247 ::
Color tint = { 255, 255, 255, 255 })
const {
- 248 ::DrawTextCodepoint(*
this, codepoint, position, fontSize, tint);
-
-
-
-
- 256 float fontSize,
float spacing,
- 257 ::
Color tint = { 255, 255, 255, 255 })
const {
- 258 ::DrawTextCodepoints(*
this,
-
-
-
-
-
-
- 268 return ::MeasureTextEx(*
this, text.c_str(), fontSize, spacing);
-
-
-
- 275 return ::GetGlyphIndex(*
this, character);
-
-
- 281 inline ::Image
ImageText(
const std::string& text,
float fontSize,
- 282 float spacing, ::
Color tint)
const {
- 283 return ::ImageTextEx(*
this, text.c_str(), fontSize, spacing, tint);
-
-
-
- 287 void set(const ::Font& font) {
- 288 baseSize = font.baseSize;
- 289 glyphCount = font.glyphCount;
- 290 glyphPadding = font.glyphPadding;
- 291 texture = font.texture;
-
- 293 glyphs = font.glyphs;
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+ 111 GETTERSETTER(
int, BaseSize, baseSize)
+ 112 GETTERSETTER(
int, GlyphCount, glyphCount)
+ 113 GETTERSETTER(
int, GlyphPadding, glyphPadding)
+
+ 115 GETTERSETTER(::GlyphInfo*, Glyphs, glyphs)
+
+
+
+
+
+
+ 128 texture = newTexture;
+
+
+ 131 Font& operator=(const ::Font& font) {
+
+
+
+
+
+ 137 Font& operator=(
const Font&) =
delete;
+
+ 139 Font& operator=(
Font&& other) noexcept {
+ 140 if (
this == &other) {
+
+
+
+
+
+
+
+ 148 other.glyphCount = 0;
+ 149 other.glyphPadding = 0;
+
+ 151 other.recs =
nullptr;
+ 152 other.glyphs =
nullptr;
+
+
+
+
+ 166 void Load(
const std::string& fileName) {
+
+
+ 169 throw new RaylibException(
"Failed to load Font with from file: " + fileName);
+
+
+
+ 183 void Load(
const std::string& fileName,
int fontSize,
int* fontChars,
int charCount) {
+ 184 set(::
LoadFontEx(fileName.c_str(), fontSize, fontChars, charCount));
+
+ 186 throw new RaylibException(
"Failed to load Font with from file with font size: " + fileName);
+
+
+
+ 190 void Load(const ::Image& image, ::
Color key,
int firstChar) {
+ 191 set(::LoadFontFromImage(image, key, firstChar));
+
+
+
+
+
+ 197 void Load(
const std::string& fileType,
const unsigned char* fileData,
int dataSize,
int fontSize,
+ 198 int *fontChars,
int charsCount) {
+ 199 set(::LoadFontFromMemory(fileType.c_str(), fileData, dataSize, fontSize, fontChars,
+
+
+ 202 throw new RaylibException(
"Failed to load Font " + fileType +
" with from file data");
+
+
+
+
+
+
+
+
+ 217 float spacing, ::
Color tint = WHITE)
const {
+ 218 ::DrawTextEx(*
this, text.c_str(), position, fontSize, spacing, tint);
+
+
+ 224 inline void DrawText(
const std::string& text,
int posX,
int posY,
float fontSize,
+ 225 float spacing, ::
Color tint = WHITE)
const {
+
+ 227 { static_cast<float>(posX), static_cast<float>(posY) },
+ 228 fontSize, spacing, tint);
+
+
+
+ 232 const std::string& text,
+
+
+
+
+
+ 238 ::
Color tint = WHITE)
const {
+
+
+
+
+
+
+
+
+
+ 251 ::
Color tint = { 255, 255, 255, 255 })
const {
+ 252 ::DrawTextCodepoint(*
this, codepoint, position, fontSize, tint);
+
+
+
+
+ 260 float fontSize,
float spacing,
+ 261 ::
Color tint = { 255, 255, 255, 255 })
const {
+ 262 ::DrawTextCodepoints(*
this,
+
+
+
+
+
+
+ 272 return ::MeasureTextEx(*
this, text.c_str(), fontSize, spacing);
+
+
+
+ 279 return ::GetGlyphIndex(*
this, character);
+
+
+ 285 inline ::Image
ImageText(
const std::string& text,
float fontSize,
+ 286 float spacing, ::
Color tint)
const {
+ 287 return ::ImageTextEx(*
this, text.c_str(), fontSize, spacing, tint);
+
+
+
+ 291 void set(const ::Font& font) {
+ 292 baseSize = font.baseSize;
+ 293 glyphCount = font.glyphCount;
+ 294 glyphPadding = font.glyphPadding;
+ 295 texture = font.texture;
+
+ 297 glyphs = font.glyphs;
+
+
+
+
+
+
+
Font type, includes texture and charSet array data.
Font(const std::string &fileName, int fontSize, int *fontChars=0, int charCount=0)
Loads a Font from the given file, with generation parameters.
-void DrawText(const int *codepoints, int count, ::Vector2 position, float fontSize, float spacing, ::Color tint={ 255, 255, 255, 255 }) const
Draw multiple character (codepoint)
-void SetTexture(const ::Texture &newTexture)
Set the texture atlas containing the glyphs.
-Vector2 MeasureText(const std::string &text, float fontSize, float spacing) const
Measure string size for Font.
-void Load(const std::string &fileName, int fontSize, int *fontChars, int charCount)
Loads a font from a given file with generation parameters.
-void Load(const std::string &fileName)
Loads a font from a given file.
+void DrawText(const int *codepoints, int count, ::Vector2 position, float fontSize, float spacing, ::Color tint={ 255, 255, 255, 255 }) const
Draw multiple character (codepoint)
+void SetTexture(const ::Texture &newTexture)
Set the texture atlas containing the glyphs.
+Vector2 MeasureText(const std::string &text, float fontSize, float spacing) const
Measure string size for Font.
+void Load(const std::string &fileName, int fontSize, int *fontChars, int charCount)
Loads a font from a given file with generation parameters.
+void Load(const std::string &fileName)
Loads a font from a given file.
Font(const std::string &fileType, const unsigned char *fileData, int dataSize, int fontSize, int *fontChars, int charsCount)
Loads a font from memory, based on the given file type and file data.
-int GetGlyphIndex(int character) const
Get index position for a unicode character on font.
+int GetGlyphIndex(int character) const
Get index position for a unicode character on font.
Font()
Retrieves the default Font.
-void DrawText(int codepoint, ::Vector2 position, float fontSize, ::Color tint={ 255, 255, 255, 255 }) const
Draw one character (codepoint)
+void DrawText(int codepoint, ::Vector2 position, float fontSize, ::Color tint={ 255, 255, 255, 255 }) const
Draw one character (codepoint)
Font(const std::string &fileName)
Loads a Font from the given file.
-TextureUnmanaged GetTexture()
Get the texture atlas containing the glyphs.
+TextureUnmanaged GetTexture()
Get the texture atlas containing the glyphs.
Font(const ::Image &image, ::Color key, int firstChar)
Loads a Font from the given image with a color key.
-void DrawText(const std::string &text, int posX, int posY, float fontSize, float spacing, ::Color tint=WHITE) const
Draw text using font and additional parameters.
-bool IsReady()
Returns if the font is ready to be used.
-void DrawText(const std::string &text, ::Vector2 position, float fontSize, float spacing, ::Color tint=WHITE) const
Draw text using font and additional parameters.
-inline ::Image ImageText(const std::string &text, float fontSize, float spacing, ::Color tint) const
Create an image from text (custom sprite font)
+void DrawText(const std::string &text, int posX, int posY, float fontSize, float spacing, ::Color tint=WHITE) const
Draw text using font and additional parameters.
+bool IsReady()
Returns if the font is ready to be used.
+void DrawText(const std::string &text, ::Vector2 position, float fontSize, float spacing, ::Color tint=WHITE) const
Draw text using font and additional parameters.
+inline ::Image ImageText(const std::string &text, float fontSize, float spacing, ::Color tint) const
Create an image from text (custom sprite font)
Exception used for most raylib-related exceptions.
diff --git a/docs/_sound_8hpp_source.html b/docs/_sound_8hpp_source.html
index 2e2c96c6..df2c0f88 100644
--- a/docs/_sound_8hpp_source.html
+++ b/docs/_sound_8hpp_source.html
@@ -142,113 +142,117 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- 129 ::ResumeSound(*
this);
-
-
-
-
- 137 ::PlaySoundMulti(*
this);
-
-
-
-
-
-
-
-
-
- 153 return ::IsSoundPlaying(*
this);
-
-
-
- 160 ::SetSoundVolume(*
this, volume);
-
-
-
-
- 168 ::SetSoundPitch(*
this, pitch);
-
-
-
-
- 176 ::SetSoundPan(*
this, pan);
-
-
-
- 185 void Load(
const std::string& fileName) {
- 186 set(::LoadSound(fileName.c_str()));
-
-
-
-
-
- 197 void Load(const ::Wave& wave) {
- 198 set(::LoadSoundFromWave(wave));
-
-
-
-
-
-
- 210 return stream.buffer !=
nullptr;
-
-
-
- 217 return ::GetSoundsPlaying();
-
-
-
- 221 void set(const ::Sound& sound) {
- 222 frameCount = sound.frameCount;
- 223 stream = sound.stream;
-
-
-
-
-
-
-
+
+ 99 if (frameCount != 0) {
+ 100 ::UnloadSound(*
this);
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 133 ::ResumeSound(*
this);
+
+
+
+
+ 141 ::PlaySoundMulti(*
this);
+
+
+
+
+
+
+
+
+
+ 157 return ::IsSoundPlaying(*
this);
+
+
+
+ 164 ::SetSoundVolume(*
this, volume);
+
+
+
+
+ 172 ::SetSoundPitch(*
this, pitch);
+
+
+
+
+ 180 ::SetSoundPan(*
this, pan);
+
+
+
+ 189 void Load(
const std::string& fileName) {
+ 190 set(::LoadSound(fileName.c_str()));
+
+
+
+
+
+ 201 void Load(const ::Wave& wave) {
+ 202 set(::LoadSoundFromWave(wave));
+
+
+
+
+
+
+ 214 return stream.buffer !=
nullptr;
+
+
+
+ 221 return ::GetSoundsPlaying();
+
+
+
+ 225 void set(const ::Sound& sound) {
+ 226 frameCount = sound.frameCount;
+ 227 stream = sound.stream;
+
+
+
+
+
+
+
AudioStream management functions.
Exception used for most raylib-related exceptions.
Wave/Sound management functions.
-Sound & SetVolume(float volume)
Set volume for a sound (1.0 is max level)
-Sound & Resume()
Resume a paused sound.
+Sound & SetVolume(float volume)
Set volume for a sound (1.0 is max level)
+Sound & Resume()
Resume a paused sound.
Sound(const std::string &fileName)
Loads a sound from the given file.
void Unload()
Unload sound.
-void Load(const ::Wave &wave)
Loads the given Wave object into the Sound.
-Sound & Play()
Play a sound.
-Sound & SetPan(float pan=0.5f)
Set pan for a sound (0.5 is center)
-int GetPlaying()
Get number of sounds playing in the multichannel.
-Sound & SetPitch(float pitch)
Set pitch for a sound (1.0 is base level)
-Sound & Pause()
Pause a sound.
-Sound & StopMulti()
Stop any sound playing (using multichannel buffer pool)
-bool IsReady() const
Retrieve whether or not the Sound buffer is loaded.
-void Load(const std::string &fileName)
Load a sound from the given file.
+void Load(const ::Wave &wave)
Loads the given Wave object into the Sound.
+Sound & Play()
Play a sound.
+Sound & SetPan(float pan=0.5f)
Set pan for a sound (0.5 is center)
+int GetPlaying()
Get number of sounds playing in the multichannel.
+Sound & SetPitch(float pitch)
Set pitch for a sound (1.0 is base level)
+Sound & Pause()
Pause a sound.
+Sound & StopMulti()
Stop any sound playing (using multichannel buffer pool)
+bool IsReady() const
Retrieve whether or not the Sound buffer is loaded.
+void Load(const std::string &fileName)
Load a sound from the given file.
Sound & Update(const void *data)
Update sound buffer with new data, assuming it's the same sample count.
-bool IsPlaying() const
Check if a sound is currently playing.
+bool IsPlaying() const
Check if a sound is currently playing.
Sound & Update(const void *data, int samplesCount)
Update sound buffer with new data.
-Sound & PlayMulti()
Play a sound (using multichannel buffer pool)
+Sound & PlayMulti()
Play a sound (using multichannel buffer pool)
Sound(const ::Wave &wave)
Loads a sound from the given Wave.
-Sound & Stop()
Stop playing a sound.
+Sound & Stop()
Stop playing a sound.
All raylib-cpp classes and functions appear in the raylib namespace.
diff --git a/docs/_texture_unmanaged_8hpp_source.html b/docs/_texture_unmanaged_8hpp_source.html
index 1b8133b2..9e7a74b4 100644
--- a/docs/_texture_unmanaged_8hpp_source.html
+++ b/docs/_texture_unmanaged_8hpp_source.html
@@ -158,170 +158,174 @@
- 135 ::UnloadTexture(*
this);
-
-
-
- 142 ::UpdateTexture(*
this, pixels);
-
-
-
-
- 150 UpdateTextureRec(*
this, rec, pixels);
-
-
-
-
- 158 return ::LoadImageFromTexture(*
this);
-
-
-
-
-
-
-
- 172 ::GenTextureMipmaps(
this);
-
-
-
-
- 180 ::SetTextureFilter(*
this, filterMode);
-
-
-
-
- 188 ::SetTextureWrap(*
this, wrapMode);
-
-
-
- 197 inline void Draw(
int posX = 0,
int posY = 0, ::
Color tint = {255, 255, 255, 255})
const {
- 198 ::DrawTexture(*
this, posX, posY, tint);
-
-
-
- 207 ::DrawTextureV(*
this, position, tint);
-
-
- 215 inline void Draw(::
Vector2 position,
float rotation,
float scale = 1.0f,
- 216 ::
Color tint = {255, 255, 255, 255})
const {
- 217 ::DrawTextureEx(*
this, position, rotation, scale, tint);
-
-
-
- 226 ::Color tint = {255, 255, 255, 255})
const {
- 227 ::DrawTextureRec(*
this, sourceRec, position, tint);
-
-
-
- 236 ::
Color tint = {255, 255, 255, 255})
const {
- 237 ::DrawTextureQuad(*
this, tiling, offset, quad, tint);
-
-
-
- 246 float rotation = 0,
::Color tint = {255, 255, 255, 255})
const {
- 247 ::DrawTexturePro(*
this, sourceRec, destRec, origin, rotation, tint);
-
-
-
- 256 float rotation = 0,
::Color tint = {255, 255, 255, 255})
const {
- 257 ::DrawTextureNPatch(*
this, nPatchInfo, destRec, origin, rotation, tint);
-
-
-
- 266 float rotation = 0,
float scale = 1,
Color tint = {255, 255, 255, 255})
const {
- 267 ::DrawTextureTiled(*
this, sourceRec, destRec, origin, rotation, scale, tint);
-
-
-
- 276 ::
Vector2 *texcoords,
int pointsCount,
- 277 ::
Color tint = {255, 255, 255, 255})
const {
- 278 ::DrawTexturePoly(*
this, center, points, texcoords, pointsCount, tint);
-
-
-
- 287 ::
Vector3 position,
float size,
- 288 ::
Color tint = {255, 255, 255, 255})
const {
-
-
-
-
-
- 299 ::
Color tint = {255, 255, 255, 255})
const {
- 300 DrawBillboardRec(camera, *
this, source, position, size, tint);
-
-
-
-
-
- 311 ::
Color tint = {255, 255, 255, 255})
const {
- 312 DrawBillboardPro(camera, *
this, source, position, up, size, origin, rotation, tint);
-
-
-
- 321 ::
Color color = {255, 255, 255, 255})
const {
- 322 ::DrawCubeTexture(*
this, position, width, height, length, color);
-
-
-
- 331 ::
Color color = {255, 255, 255, 255})
const {
- 332 ::DrawCubeTexture(*
this, position, dimensions.x, dimensions.y, dimensions.z, color);
-
-
-
- 341 ::
Color color = {255, 255, 255, 255})
const {
- 342 ::DrawCubeTextureRec(*
this, source, position, width, height, length, color);
-
-
-
- 351 ::
Color color = {255, 255, 255, 255})
const {
- 352 ::DrawCubeTextureRec(*
this, source, position, dimensions.x, dimensions.y, dimensions.z, color);
-
-
-
- 359 ::SetMaterialTexture(material, mapType, *
this);
-
-
-
-
- 364 ::SetMaterialTexture((::
Material*)(&material), mapType, *
this);
-
-
-
-
- 372 ::SetShapesTexture(*
this, source);
-
-
-
-
- 380 ::SetShaderValueTexture(shader, locIndex, *
this);
-
-
-
-
-
-
-
-
- 394 void set(const ::Texture& texture) {
-
- 396 width = texture.width;
- 397 height = texture.height;
- 398 mipmaps = texture.mipmaps;
- 399 format = texture.format;
-
-
-
-
- 404 typedef TextureUnmanaged Texture2DUnmanaged;
- 405 typedef TextureUnmanaged TextureCubemapUnmanaged;
+
+
+ 137 ::UnloadTexture(*
this);
+
+
+
+
+
+ 146 ::UpdateTexture(*
this, pixels);
+
+
+
+
+ 154 UpdateTextureRec(*
this, rec, pixels);
+
+
+
+
+ 162 return ::LoadImageFromTexture(*
this);
+
+
+
+
+
+
+
+ 176 ::GenTextureMipmaps(
this);
+
+
+
+
+ 184 ::SetTextureFilter(*
this, filterMode);
+
+
+
+
+ 192 ::SetTextureWrap(*
this, wrapMode);
+
+
+
+ 201 inline void Draw(
int posX = 0,
int posY = 0, ::
Color tint = {255, 255, 255, 255})
const {
+ 202 ::DrawTexture(*
this, posX, posY, tint);
+
+
+
+ 211 ::DrawTextureV(*
this, position, tint);
+
+
+ 219 inline void Draw(::
Vector2 position,
float rotation,
float scale = 1.0f,
+ 220 ::
Color tint = {255, 255, 255, 255})
const {
+ 221 ::DrawTextureEx(*
this, position, rotation, scale, tint);
+
+
+
+ 230 ::Color tint = {255, 255, 255, 255})
const {
+ 231 ::DrawTextureRec(*
this, sourceRec, position, tint);
+
+
+
+ 240 ::
Color tint = {255, 255, 255, 255})
const {
+ 241 ::DrawTextureQuad(*
this, tiling, offset, quad, tint);
+
+
+
+ 250 float rotation = 0,
::Color tint = {255, 255, 255, 255})
const {
+ 251 ::DrawTexturePro(*
this, sourceRec, destRec, origin, rotation, tint);
+
+
+
+ 260 float rotation = 0,
::Color tint = {255, 255, 255, 255})
const {
+ 261 ::DrawTextureNPatch(*
this, nPatchInfo, destRec, origin, rotation, tint);
+
+
+
+ 270 float rotation = 0,
float scale = 1,
Color tint = {255, 255, 255, 255})
const {
+ 271 ::DrawTextureTiled(*
this, sourceRec, destRec, origin, rotation, scale, tint);
+
+
+
+ 280 ::
Vector2 *texcoords,
int pointsCount,
+ 281 ::
Color tint = {255, 255, 255, 255})
const {
+ 282 ::DrawTexturePoly(*
this, center, points, texcoords, pointsCount, tint);
+
+
+
+ 291 ::
Vector3 position,
float size,
+ 292 ::
Color tint = {255, 255, 255, 255})
const {
+
+
+
+
+
+ 303 ::
Color tint = {255, 255, 255, 255})
const {
+ 304 DrawBillboardRec(camera, *
this, source, position, size, tint);
+
+
+
+
+
+ 315 ::
Color tint = {255, 255, 255, 255})
const {
+ 316 DrawBillboardPro(camera, *
this, source, position, up, size, origin, rotation, tint);
+
+
+
+ 325 ::
Color color = {255, 255, 255, 255})
const {
+ 326 ::DrawCubeTexture(*
this, position, width, height, length, color);
+
+
+
+ 335 ::
Color color = {255, 255, 255, 255})
const {
+ 336 ::DrawCubeTexture(*
this, position, dimensions.x, dimensions.y, dimensions.z, color);
+
+
+
+ 345 ::
Color color = {255, 255, 255, 255})
const {
+ 346 ::DrawCubeTextureRec(*
this, source, position, width, height, length, color);
+
+
+
+ 355 ::
Color color = {255, 255, 255, 255})
const {
+ 356 ::DrawCubeTextureRec(*
this, source, position, dimensions.x, dimensions.y, dimensions.z, color);
+
+
+
+ 363 ::SetMaterialTexture(material, mapType, *
this);
+
+
+
+
+ 368 ::SetMaterialTexture((::
Material*)(&material), mapType, *
this);
+
+
+
+
+ 376 ::SetShapesTexture(*
this, source);
+
+
+
+
+ 384 ::SetShaderValueTexture(shader, locIndex, *
this);
+
+
+
+
+
+
+
+
+ 398 void set(const ::Texture& texture) {
+
+ 400 width = texture.width;
+ 401 height = texture.height;
+ 402 mipmaps = texture.mipmaps;
+ 403 format = texture.format;
+
+
-
-
-
-
-
+
+ 408 typedef TextureUnmanaged Texture2DUnmanaged;
+ 409 typedef TextureUnmanaged TextureCubemapUnmanaged;
+
+
-
+
+
+
+
+
Image type, bpp always RGBA (32bit)
@@ -329,43 +333,43 @@
A Texture that is not managed by the C++ garbage collector.
-void DrawBillboard(const ::Camera &camera, ::Vector3 position, float size, ::Color tint={255, 255, 255, 255}) const
Draw a billboard texture.
-TextureUnmanaged & SetFilter(int filterMode)
Set texture scaling filter mode.
-TextureUnmanaged & Update(::Rectangle rec, const void *pixels)
Update GPU texture rectangle with new data.
+void DrawBillboard(const ::Camera &camera, ::Vector3 position, float size, ::Color tint={255, 255, 255, 255}) const
Draw a billboard texture.
+TextureUnmanaged & SetFilter(int filterMode)
Set texture scaling filter mode.
+TextureUnmanaged & Update(::Rectangle rec, const void *pixels)
Update GPU texture rectangle with new data.
void Load(const ::Image &image, int layoutType)
Load cubemap from image, multiple image cubemap layouts supported.
-TextureUnmanaged & Update(const void *pixels)
Update GPU texture with new data.
-inline ::Image GetData() const
Get pixel data from GPU texture and return an Image.
-TextureUnmanaged & SetShaderValue(const ::Shader &shader, int locIndex)
Set shader uniform value for texture (sampler2d)
-void DrawPoly(::Vector2 center, ::Vector2 *points, ::Vector2 *texcoords, int pointsCount, ::Color tint={255, 255, 255, 255}) const
Draw a textured polygon.
+TextureUnmanaged & Update(const void *pixels)
Update GPU texture with new data.
+inline ::Image GetData() const
Get pixel data from GPU texture and return an Image.
+TextureUnmanaged & SetShaderValue(const ::Shader &shader, int locIndex)
Set shader uniform value for texture (sampler2d)
+void DrawPoly(::Vector2 center, ::Vector2 *points, ::Vector2 *texcoords, int pointsCount, ::Color tint={255, 255, 255, 255}) const
Draw a textured polygon.
TextureUnmanaged(const ::Image &image, int layout)
Load cubemap from image, multiple image cubemap layouts supported.
-void DrawCube(::Vector3 position, ::Vector3 dimensions, ::Color color={255, 255, 255, 255}) const
Draw cube textured, with dimensions.
-void Draw(::NPatchInfo nPatchInfo, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, ::Color tint={255, 255, 255, 255}) const
Draws a texture (or part of it) that stretches or shrinks nicely.
+void DrawCube(::Vector3 position, ::Vector3 dimensions, ::Color color={255, 255, 255, 255}) const
Draw cube textured, with dimensions.
+void Draw(::NPatchInfo nPatchInfo, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, ::Color tint={255, 255, 255, 255}) const
Draws a texture (or part of it) that stretches or shrinks nicely.
TextureUnmanaged(unsigned int id, int width, int height, int mipmaps=1, int format=PIXELFORMAT_UNCOMPRESSED_R8G8B8A8)
Move/Create a texture structure manually.
-bool IsReady() const
Determines whether or not the Texture has been loaded and is ready.
+bool IsReady() const
Determines whether or not the Texture has been loaded and is ready.
void Load(const ::Image &image)
Load texture from image data.
-void Draw(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, ::Color tint={255, 255, 255, 255}) const
Draw a part of a texture defined by a rectangle with 'pro' parameters.
-void DrawBillboard(const ::Camera &camera, ::Rectangle source, Vector3 position, ::Vector3 up, Vector2 size, Vector2 origin, float rotation=0.0f, ::Color tint={255, 255, 255, 255}) const
Draw a billboard texture defined by source and rotation.
+void Draw(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, ::Color tint={255, 255, 255, 255}) const
Draw a part of a texture defined by a rectangle with 'pro' parameters.
+void DrawBillboard(const ::Camera &camera, ::Rectangle source, Vector3 position, ::Vector3 up, Vector2 size, Vector2 origin, float rotation=0.0f, ::Color tint={255, 255, 255, 255}) const
Draw a billboard texture defined by source and rotation.
void Load(const std::string &fileName)
Load texture from file into GPU memory (VRAM)
-void Draw(int posX=0, int posY=0, ::Color tint={255, 255, 255, 255}) const
Draw a Texture2D.
-TextureUnmanaged & SetMaterial(::Material *material, int mapType=MATERIAL_MAP_NORMAL)
Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
-TextureUnmanaged & GenMipmaps()
Generate GPU mipmaps for a texture.
-void Draw(::Rectangle sourceRec, ::Vector2 position={0, 0}, ::Color tint={255, 255, 255, 255}) const
Draw a part of a texture defined by a rectangle.
+void Draw(int posX=0, int posY=0, ::Color tint={255, 255, 255, 255}) const
Draw a Texture2D.
+TextureUnmanaged & SetMaterial(::Material *material, int mapType=MATERIAL_MAP_NORMAL)
Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
+TextureUnmanaged & GenMipmaps()
Generate GPU mipmaps for a texture.
+void Draw(::Rectangle sourceRec, ::Vector2 position={0, 0}, ::Color tint={255, 255, 255, 255}) const
Draw a part of a texture defined by a rectangle.
inline ::Vector2 GetSize() const
Retrieve the width and height of the texture.
-void Draw(::Vector2 position, ::Color tint={255, 255, 255, 255}) const
Draw a Texture2D with position defined as Vector2.
-void Draw(::Vector2 tiling, ::Vector2 offset, ::Rectangle quad, ::Color tint={255, 255, 255, 255}) const
Draw texture quad with tiling and offset parameters.
-void Draw(::Vector2 position, float rotation, float scale=1.0f, ::Color tint={255, 255, 255, 255}) const
Draw a Texture2D with extended parameters.
+void Draw(::Vector2 position, ::Color tint={255, 255, 255, 255}) const
Draw a Texture2D with position defined as Vector2.
+void Draw(::Vector2 tiling, ::Vector2 offset, ::Rectangle quad, ::Color tint={255, 255, 255, 255}) const
Draw texture quad with tiling and offset parameters.
+void Draw(::Vector2 position, float rotation, float scale=1.0f, ::Color tint={255, 255, 255, 255}) const
Draw a Texture2D with extended parameters.
TextureUnmanaged()
Default texture constructor.
-void DrawTiled(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, float scale=1, Color tint={255, 255, 255, 255}) const
Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.
-TextureUnmanaged & SetWrap(int wrapMode)
Set texture wrapping mode.
-void DrawCube(::Rectangle source, ::Vector3 position, ::Vector3 dimensions, ::Color color={255, 255, 255, 255}) const
Draw cube with a region of a texture, with dimensions.
+void DrawTiled(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, float scale=1, Color tint={255, 255, 255, 255}) const
Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.
+TextureUnmanaged & SetWrap(int wrapMode)
Set texture wrapping mode.
+void DrawCube(::Rectangle source, ::Vector3 position, ::Vector3 dimensions, ::Color color={255, 255, 255, 255}) const
Draw cube with a region of a texture, with dimensions.
TextureUnmanaged(const std::string &fileName)
Load texture from file into GPU memory (VRAM)
void Unload()
Unload texture from GPU memory (VRAM)
-void DrawCube(::Rectangle source, ::Vector3 position, float width, float height, float length, ::Color color={255, 255, 255, 255}) const
Draw cube with a region of a texture.
-void DrawCube(::Vector3 position, float width, float height, float length, ::Color color={255, 255, 255, 255}) const
Draw cube textured.
+void DrawCube(::Rectangle source, ::Vector3 position, float width, float height, float length, ::Color color={255, 255, 255, 255}) const
Draw cube with a region of a texture.
+void DrawCube(::Vector3 position, float width, float height, float length, ::Color color={255, 255, 255, 255}) const
Draw cube textured.
TextureUnmanaged(const ::Texture &texture)
Creates a texture object based on the given Texture struct data.
TextureUnmanaged(const ::Image &image)
Creates a texture from the given Image.
-TextureUnmanaged & SetShapes(const ::Rectangle &source)
Set texture and rectangle to be used on shapes drawing.
-void DrawBillboard(const ::Camera &camera, ::Rectangle source, ::Vector3 position, ::Vector2 size, ::Color tint={255, 255, 255, 255}) const
Draw a billboard texture defined by source.
+TextureUnmanaged & SetShapes(const ::Rectangle &source)
Set texture and rectangle to be used on shapes drawing.
+void DrawBillboard(const ::Camera &camera, ::Rectangle source, ::Vector3 position, ::Vector2 size, ::Color tint={255, 255, 255, 255}) const
Draw a billboard texture defined by source.
All raylib-cpp classes and functions appear in the raylib namespace.
diff --git a/docs/_vector2_8hpp_source.html b/docs/_vector2_8hpp_source.html
index 96f35361..6f0fc720 100644
--- a/docs/_vector2_8hpp_source.html
+++ b/docs/_vector2_8hpp_source.html
@@ -203,159 +203,188 @@
-
- 208 return Vector2Length(*
this);
+
+ 208 return Vector2Normalize(*
this);
-
- 215 return Vector2LengthSqr(*
this);
+
+ 215 return ::Vector2Transform(*
this, mat);
-
- 222 return Vector2Normalize(*
this);
+ 221 inline Vector2 Lerp(const ::Vector2& vector2,
float amount)
const {
+ 222 return Vector2Lerp(*
this, vector2, amount);
-
- 229 return Vector2DotProduct(*
this, vector2);
+
+ 229 return Vector2Reflect(*
this, normal);
- 235 inline float Angle(const ::Vector2& vector2)
const {
- 236 return Vector2Angle(*
this, vector2);
+
+ 236 return Vector2Rotate(*
this, degrees);
- 242 inline float Distance(const ::Vector2& vector2)
const {
- 243 return Vector2Distance(*
this, vector2);
+
+ 243 return Vector2MoveTowards(*
this, target, maxDistance);
- 249 inline Vector2 Lerp(const ::Vector2& vector2,
float amount)
const {
- 250 return Vector2Lerp(*
this, vector2, amount);
+
+ 250 return ::Vector2Invert(*
this);
-
- 257 return Vector2Reflect(*
this, normal);
+
+ 257 return ::Vector2Clamp(*
this, min, max);
-
- 264 return Vector2Rotate(*
this, degrees);
+
+ 264 return ::Vector2ClampValue(*
this, min, max);
-
- 271 return Vector2MoveTowards(*
this, target, maxDistance);
+
+ 271 return ::Vector2Equals(*
this, q);
-
- 278 return Vector2Zero();
+
+ 278 return Vector2Length(*
this);
-
-
+
+ 285 return Vector2LengthSqr(*
this);
-
-
- 289 inline void DrawPixel(::
Color color = {0, 0, 0, 255})
const {
- 290 ::DrawPixelV(*
this, color);
-
-
- 293 inline void DrawLine(::Vector2 endPos, ::Color color = {0, 0, 0, 255})
const {
- 294 ::DrawLineV(*
this, endPos, color);
-
-
- 297 inline void DrawLine(::Vector2 endPos,
float thick, ::Color color = {0, 0, 0, 255})
const {
- 298 ::DrawLineEx(*
this, endPos, thick, color);
-
-
- 301 inline void DrawLineBezier(::Vector2 endPos,
float thick, ::Color color = {0, 0, 0, 255})
const {
- 302 ::DrawLineBezier(*
this, endPos, thick, color);
-
-
-
-
-
-
- 312 ::
Color color = {0, 0, 0, 255})
const {
-
+
+
+ 292 return Vector2DotProduct(*
this, vector2);
+
+
+ 298 inline float Distance(const ::Vector2& vector2)
const {
+ 299 return Vector2Distance(*
this, vector2);
+
+
+
+ 306 return ::Vector2DistanceSqr(*
this, v2);
+
+
+ 312 inline float Angle(const ::Vector2& vector2)
const {
+ 313 return Vector2Angle(*
this, vector2);
-
- 320 ::DrawCircleV(*
this, radius, color);
+
+ 320 return Vector2Zero();
- 323 inline void DrawRectangle(::Vector2 size, ::Color color = {0, 0, 0, 255})
const {
- 324 ::DrawRectangleV(*
this, size, color);
-
-
- 327 inline void DrawPoly(
int sides,
float radius,
float rotation, ::Color color = {0, 0, 0, 255})
const {
- 328 ::DrawPoly(*
this, sides, radius, rotation, color);
-
+
+
+
+
-
- 335 return ::CheckCollisionCircles(*
this, radius1, center2, radius2);
-
-
-
- 342 return ::CheckCollisionCircleRec(*
this, radius, rec);
-
-
-
- 349 return ::CheckCollisionPointRec(*
this, rec);
-
-
-
- 356 return ::CheckCollisionPointCircle(*
this, center, radius);
-
-
-
- 363 return ::CheckCollisionPointTriangle(*
this, p1, p2, p3);
-
-
-
-
-
- 372 ::
Vector2 *collisionPoint)
const {
- 373 return ::CheckCollisionLines(*
this, endPos1, startPos2, endPos2, collisionPoint);
-
-
-
- 380 return ::CheckCollisionPointLine(*
this, p1, p2, threshold);
-
-
-
- 384 void set(const ::Vector2& vec) {
-
-
-
-
-
-
-
-
+ 331 inline void DrawPixel(::
Color color = {0, 0, 0, 255})
const {
+ 332 ::DrawPixelV(*
this, color);
+
+
+ 335 inline void DrawLine(::Vector2 endPos, ::Color color = {0, 0, 0, 255})
const {
+ 336 ::DrawLineV(*
this, endPos, color);
+
+
+ 339 inline void DrawLine(::Vector2 endPos,
float thick, ::Color color = {0, 0, 0, 255})
const {
+ 340 ::DrawLineEx(*
this, endPos, thick, color);
+
+
+ 343 inline void DrawLineBezier(::Vector2 endPos,
float thick, ::Color color = {0, 0, 0, 255})
const {
+ 344 ::DrawLineBezier(*
this, endPos, thick, color);
+
+
+
+
+
+
+ 354 ::
Color color = {0, 0, 0, 255})
const {
+
+
+
+
+ 362 ::DrawCircleV(*
this, radius, color);
+
+
+ 365 inline void DrawRectangle(::Vector2 size, ::Color color = {0, 0, 0, 255})
const {
+ 366 ::DrawRectangleV(*
this, size, color);
+
+
+ 369 inline void DrawPoly(
int sides,
float radius,
float rotation, ::Color color = {0, 0, 0, 255})
const {
+ 370 ::DrawPoly(*
this, sides, radius, rotation, color);
+
+
+
+ 377 return ::CheckCollisionCircles(*
this, radius1, center2, radius2);
+
+
+
+ 384 return ::CheckCollisionCircleRec(*
this, radius, rec);
+
+
+
+ 391 return ::CheckCollisionPointRec(*
this, rec);
+
-
+
+ 398 return ::CheckCollisionPointCircle(*
this, center, radius);
+
+
+
+ 405 return ::CheckCollisionPointTriangle(*
this, p1, p2, p3);
+
+
+
+
+
+ 414 ::
Vector2 *collisionPoint)
const {
+ 415 return ::CheckCollisionLines(*
this, endPos1, startPos2, endPos2, collisionPoint);
+
+
+
+ 422 return ::CheckCollisionPointLine(*
this, p1, p2, threshold);
+
+
+
+ 426 void set(const ::Vector2& vec) {
+
+
+
+
+
+
+
+
+
+
+Matrix type (OpenGL style 4x4 - right handed, column major)
-bool CheckCollision(::Vector2 p1, ::Vector2 p2, ::Vector2 p3) const
Check if point is inside a triangle.
-Vector2 MoveTowards(const ::Vector2 &target, float maxDistance) const
Move Vector towards target.
-bool CheckCollisionPointLine(::Vector2 p1, ::Vector2 p2, int threshold=1)
Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels...
+int Equals(::Vector2 q)
Check whether two given vectors are almost equal.
+bool CheckCollision(::Vector2 p1, ::Vector2 p2, ::Vector2 p3) const
Check if point is inside a triangle.
+Vector2 MoveTowards(const ::Vector2 &target, float maxDistance) const
Move Vector towards target.
+bool CheckCollisionPointLine(::Vector2 p1, ::Vector2 p2, int threshold=1)
Check if point belongs to line created between two points [p1] and [p2] with defined margin in pixels...
Vector2 Subtract(const ::Vector2 &vector2) const
Subtract two vectors (v1 - v2)
Vector2 operator*(const float scale) const
Scale vector (multiply by value)
-bool CheckCollision(::Rectangle rec) const
Check if point is inside rectangle.
+bool CheckCollision(::Rectangle rec) const
Check if point is inside rectangle.
Vector2 & operator*=(const float scale)
Scale vector (multiply by value)
-Vector2 Lerp(const ::Vector2 &vector2, float amount) const
Calculate linear interpolation between two vectors.
-float Length() const
Calculate vector length.
-float DotProduct(const ::Vector2 &vector2) const
Calculate two vectors dot product.
-Vector2 Rotate(float degrees) const
Rotate Vector by float in Degrees.
-float LengthSqr() const
Calculate vector square length.
+Vector2 Lerp(const ::Vector2 &vector2, float amount) const
Calculate linear interpolation between two vectors.
+Vector2 Invert()
Invert the given vector.
+float Length() const
Calculate vector length.
+float DotProduct(const ::Vector2 &vector2) const
Calculate two vectors dot product.
+Vector2 Rotate(float degrees) const
Rotate Vector by float in Degrees.
+float LengthSqr() const
Calculate vector square length.
+Vector2 Clamp(::Vector2 min, ::Vector2 max)
Clamp the components of the vector between.
Vector2 & operator*=(const ::Vector2 &vector2)
Multiply vector by vector.
Vector2 & operator-=(const ::Vector2 &vector2)
Add two vectors (v1 + v2)
-float Distance(const ::Vector2 &vector2) const
Calculate distance between two vectors.
-bool CheckCollision(::Vector2 center, float radius) const
Check if point is inside circle.
+float Distance(const ::Vector2 &vector2) const
Calculate distance between two vectors.
+Vector2 Clamp(float min, float max)
// Clamp the magnitude of the vector between two min and max values
+bool CheckCollision(::Vector2 center, float radius) const
Check if point is inside circle.
Vector2 Divide(const ::Vector2 &vector2) const
Divide vector by vector.
-bool CheckCollisionCircle(float radius, ::Rectangle rec) const
Check collision between circle and rectangle.
-static Vector2 Zero()
Vector with components value 0.0f.
-void DrawCircle(float radius, ::Color color={0, 0, 0, 255}) const
Draw a color-filled circle (Vector version)
-bool CheckCollisionCircle(float radius1, ::Vector2 center2, float radius2) const
Check collision between two circles.
-Vector2 Reflect(const ::Vector2 &normal) const
Calculate reflected vector to normal.
+bool CheckCollisionCircle(float radius, ::Rectangle rec) const
Check collision between circle and rectangle.
+static Vector2 Zero()
Vector with components value 0.0f.
+void DrawCircle(float radius, ::Color color={0, 0, 0, 255}) const
Draw a color-filled circle (Vector version)
+bool CheckCollisionCircle(float radius1, ::Vector2 center2, float radius2) const
Check collision between two circles.
+Vector2 Reflect(const ::Vector2 &normal) const
Calculate reflected vector to normal.
Vector2 & operator/=(const float div)
Divide vector by value.
Vector2 Multiply(const ::Vector2 &vector2) const
Multiply vector by vector.
Vector2 operator+(const ::Vector2 &vector2) const
Add two vectors (v1 + v2)
@@ -368,14 +397,16 @@
Vector2 operator*(const ::Vector2 &vector2) const
Multiply vector by vector.
Vector2 operator/(const float div) const
Divide vector by value.
Vector2 & operator+=(const ::Vector2 &vector2)
Add two vectors (v1 + v2)
-bool CheckCollisionLines(::Vector2 endPos1, ::Vector2 startPos2, ::Vector2 endPos2, ::Vector2 *collisionPoint) const
Check the collision between two lines defined by two points each, returns collision point by referenc...
-static Vector2 One()
Vector with components value 1.0f.
+bool CheckCollisionLines(::Vector2 endPos1, ::Vector2 startPos2, ::Vector2 endPos2, ::Vector2 *collisionPoint) const
Check the collision between two lines defined by two points each, returns collision point by referenc...
+static Vector2 One()
Vector with components value 1.0f.
+float DistanceSqr(::Vector2 v2)
Calculate square distance between two vectors.
bool operator!=(const ::Vector2 &other)
Determines if the vectors are not equal.
-Vector2 Normalize() const
Normalize provided vector.
+Vector2 Normalize() const
Normalize provided vector.
Vector2 operator-() const
Negate vector.
Vector2 operator-(const ::Vector2 &vector2) const
Subtract two vectors (v1 - v2)
-float Angle(const ::Vector2 &vector2) const
Calculate angle from two vectors in X-axis.
-void DrawLineBezierQuad(::Vector2 endPos, ::Vector2 controlPos, float thick, ::Color color={0, 0, 0, 255}) const
Draw line using quadratic bezier curves with a control point.
+float Angle(const ::Vector2 &vector2) const
Calculate angle from two vectors in X-axis.
+void DrawLineBezierQuad(::Vector2 endPos, ::Vector2 controlPos, float thick, ::Color color={0, 0, 0, 255}) const
Draw line using quadratic bezier curves with a control point.
+Vector2 Transform(::Matrix mat)
Transforms a Vector2 by a given Matrix.
Vector2 Divide(const float div) const
Divide vector by value.
All raylib-cpp classes and functions appear in the raylib namespace.
diff --git a/docs/_wave_8hpp_source.html b/docs/_wave_8hpp_source.html
index 070852a7..81687c22 100644
--- a/docs/_wave_8hpp_source.html
+++ b/docs/_wave_8hpp_source.html
@@ -195,70 +195,71 @@
- 164 if (data !=
nullptr) {
-
-
-
-
-
-
- 174 return ::LoadSoundFromWave(*
this);
-
-
- 180 inline operator ::Sound() {
-
-
-
- 189 void Load(
const std::string& fileName) {
- 190 set(::LoadWave(fileName.c_str()));
-
-
-
-
-
- 201 void Load(
const std::string& fileType,
const unsigned char *fileData,
int dataSize) {
- 202 set(::LoadWaveFromMemory(fileType.c_str(), fileData, dataSize));
-
- 204 throw RaylibException(
"Failed to load Wave from file data of type: " + fileType);
-
-
-
-
- 214 return data !=
nullptr;
-
-
-
- 218 void set(const ::Wave& wave) {
- 219 frameCount = wave.frameCount;
- 220 sampleRate = wave.sampleRate;
- 221 sampleSize = wave.sampleSize;
- 222 channels = wave.channels;
-
-
-
-
-
-
-
-
-
+
+ 165 if (data !=
nullptr) {
+
+
+
+
+
+
+ 175 return ::LoadSoundFromWave(*
this);
+
+
+ 181 inline operator ::Sound() {
+
+
+
+ 190 void Load(
const std::string& fileName) {
+ 191 set(::LoadWave(fileName.c_str()));
+
+
+
+
+
+ 202 void Load(
const std::string& fileType,
const unsigned char *fileData,
int dataSize) {
+ 203 set(::LoadWaveFromMemory(fileType.c_str(), fileData, dataSize));
+
+ 205 throw RaylibException(
"Failed to load Wave from file data of type: " + fileType);
+
+
+
+
+ 215 return data !=
nullptr;
+
+
+
+ 219 void set(const ::Wave& wave) {
+ 220 frameCount = wave.frameCount;
+ 221 sampleRate = wave.sampleRate;
+ 222 sampleSize = wave.sampleSize;
+ 223 channels = wave.channels;
+
+
+
+
+
+
+
+
+
Exception used for most raylib-related exceptions.
Wave type, defines audio wave data.
Wave & Crop(int initSample, int finalSample)
Crop a wave to defined samples range.
inline ::Wave Copy() const
Copy a wave to a new wave.
-void Load(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load wave from memory buffer, fileType refers to extension: i.e.
+void Load(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load wave from memory buffer, fileType refers to extension: i.e.
Wave(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load wave from memory buffer, fileType refers to extension: i.e.
bool ExportAsCode(const std::string &fileName)
Export wave sample data to code (.h), returns true on success.
Wave & Format(int SampleRate, int SampleSize, int Channels=2)
Convert wave data to desired format.
void Unload()
Unload wave data.
-inline ::Sound LoadSound()
Load sound from wave data.
-bool IsReady() const
Retrieve whether or not the Wave data has been loaded.
+inline ::Sound LoadSound()
Load sound from wave data.
+bool IsReady() const
Retrieve whether or not the Wave data has been loaded.
bool Export(const std::string &fileName)
Export wave data to file, returns true on success.
float * LoadSamples()
Load samples data from wave as a floats array.
static void UnloadSamples(float *samples)
Unload samples data loaded with LoadWaveSamples()
Wave(const std::string &fileName)
Load wave data from file.
-void Load(const std::string &fileName)
Load wave data from file.
+void Load(const std::string &fileName)
Load wave data from file.
All raylib-cpp classes and functions appear in the raylib namespace.
diff --git a/docs/_window_8hpp_source.html b/docs/_window_8hpp_source.html
index f609a510..046b9b6a 100644
--- a/docs/_window_8hpp_source.html
+++ b/docs/_window_8hpp_source.html
@@ -289,11 +289,11 @@
-
+
-
-
+
+ 366 return ::GetClipboardText();
@@ -347,7 +347,6 @@
bool ShouldClose() const
Check if KEY_ESCAPE pressed or Close icon pressed.
~Window()
Close window and unload OpenGL context.
double GetTime() const
Returns elapsed time in seconds since InitWindow()
-const std::string & GetClipboardText()
Get clipboard text content.
Window & SetPosition(int x, int y)
Set window position on screen.
Window & SetMonitor(int monitor)
Set monitor for the current window.
Window & ClearBackground(const ::Color &color=BLACK)
Clear window with given color.
@@ -358,6 +357,7 @@
void Init(int width=800, int height=450, const std::string &title="raylib")
Initializes the window.
void DrawFPS(int posX=10, int posY=10) const
Draw current FPS.
Window & Restore()
Set window state: not minimized/maximized (only PLATFORM_DESKTOP)
+const std::string GetClipboardText()
Get clipboard text content.
static bool IsReady()
Check if window has been initialized successfully.
Window & SetSize(int width, int height)
Set window dimensions.
float GetFrameTime() const
Returns time in seconds for last frame drawn.
diff --git a/docs/classraylib_1_1_font.html b/docs/classraylib_1_1_font.html
index b45c20ec..aa62a821 100644
--- a/docs/classraylib_1_1_font.html
+++ b/docs/classraylib_1_1_font.html
@@ -252,7 +252,7 @@