diff --git a/docs/_audio_device_8hpp_source.html b/docs/_audio_device_8hpp_source.html index e55b901..4f5c084 100644 --- a/docs/_audio_device_8hpp_source.html +++ b/docs/_audio_device_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: AudioDevice.hpp Source File @@ -32,10 +32,10 @@ - + @@ -113,23 +113,22 @@ $(function() {
66  }
67 };
68 } // namespace raylib
-
69 
-
70 #endif // RAYLIB_CPP_INCLUDE_AUDIODEVICE_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::AudioDevice::SetVolume
AudioDevice & SetVolume(float volume)
Set master volume (listener).
Definition: AudioDevice.hpp:63
-
raylib::AudioDevice::Init
bool Init()
Initialize audio device and context.
Definition: AudioDevice.hpp:39
-
raylib::AudioDevice::~AudioDevice
~AudioDevice()
Close the audio device and context.
Definition: AudioDevice.hpp:32
-
raylib::AudioDevice::AudioDevice
AudioDevice(bool lateInit=false)
Initialize audio device and context.
Definition: AudioDevice.hpp:21
+
69 using RAudioDevice = raylib::AudioDevice;
+
70 
+
71 #endif // RAYLIB_CPP_INCLUDE_AUDIODEVICE_HPP_
raylib::AudioDevice
Audio device management functions.
Definition: AudioDevice.hpp:12
raylib::AudioDevice::Close
void Close()
Close the audio device and context.
Definition: AudioDevice.hpp:47
raylib::AudioDevice::IsReady
bool IsReady() const
Check if audio device has been initialized successfully.
Definition: AudioDevice.hpp:54
+
raylib::AudioDevice::Init
bool Init()
Initialize audio device and context.
Definition: AudioDevice.hpp:39
+
raylib::AudioDevice::~AudioDevice
~AudioDevice()
Close the audio device and context.
Definition: AudioDevice.hpp:32
+
raylib::AudioDevice::AudioDevice
AudioDevice(bool lateInit=false)
Initialize audio device and context.
Definition: AudioDevice.hpp:21
+
raylib::AudioDevice::SetVolume
AudioDevice & SetVolume(float volume)
Set master volume (listener).
Definition: AudioDevice.hpp:63
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_audio_stream_8hpp_source.html b/docs/_audio_stream_8hpp_source.html index ba7b11f..2db013e 100644 --- a/docs/_audio_stream_8hpp_source.html +++ b/docs/_audio_stream_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: AudioStream.hpp Source File @@ -32,10 +32,10 @@ - + @@ -114,10 +114,10 @@ $(function() {
48  Unload();
49  }
50 
-
51  GETTERSETTER(rAudioBuffer *, Buffer, buffer)
-
52  GETTERSETTER(unsigned int, SampleRate, sampleRate)
-
53  GETTERSETTER(unsigned int, SampleSize, sampleSize)
-
54  GETTERSETTER(unsigned int, Channels, channels)
+
51  GETTERSETTER(rAudioBuffer *, Buffer, buffer)
+
52  GETTERSETTER(unsigned int, SampleRate, sampleRate)
+
53  GETTERSETTER(unsigned int, SampleSize, sampleSize)
+
54  GETTERSETTER(unsigned int, Channels, channels)
55 
56  AudioStream& operator=(const ::AudioStream& stream) {
57  set(stream);
@@ -211,31 +211,30 @@ $(function() {
186  }
187 };
188 } // namespace raylib
-
189 
-
190 #endif // RAYLIB_CPP_INCLUDE_AUDIOSTREAM_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::AudioStream::IsPlaying
bool IsPlaying() const
Check if audio stream is playing.
Definition: AudioStream.hpp:128
-
raylib::AudioStream::Stop
AudioStream & Stop()
Stop audio stream.
Definition: AudioStream.hpp:135
-
raylib::AudioStream::Update
AudioStream & Update(const void *data, int samplesCount)
Update audio stream buffers with data.
Definition: AudioStream.hpp:82
-
raylib::AudioStream::Resume
AudioStream & Resume()
Resume audio stream.
Definition: AudioStream.hpp:120
-
raylib::AudioStream::SetBufferSizeDefault
static void SetBufferSizeDefault(int size)
Default size for new audio streams.
Definition: AudioStream.hpp:159
-
raylib::AudioStream::AudioStream
AudioStream(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels=2)
Init audio stream (to stream raw audio pcm data)
Definition: AudioStream.hpp:30
-
raylib::AudioStream::Load
bool Load(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels=2)
Init audio stream (to stream raw audio pcm data)
Definition: AudioStream.hpp:175
-
raylib::AudioStream::Play
AudioStream & Play()
Play audio stream.
Definition: AudioStream.hpp:104
-
raylib::AudioStream::IsProcessed
bool IsProcessed() const
Check if any audio stream buffers requires refill.
Definition: AudioStream.hpp:97
-
raylib::AudioStream::Pause
AudioStream & Pause()
Pause audio stream.
Definition: AudioStream.hpp:112
-
raylib::AudioStream::SetPitch
AudioStream & SetPitch(float pitch)
Set pitch for audio stream (1.0 is base level)
Definition: AudioStream.hpp:151
+
189 using RAudioStream = raylib::AudioStream;
+
190 
+
191 #endif // RAYLIB_CPP_INCLUDE_AUDIOSTREAM_HPP_
raylib::AudioStream
AudioStream management functions.
Definition: AudioStream.hpp:12
+
raylib::AudioStream::IsProcessed
bool IsProcessed() const
Check if any audio stream buffers requires refill.
Definition: AudioStream.hpp:97
+
raylib::AudioStream::Stop
AudioStream & Stop()
Stop audio stream.
Definition: AudioStream.hpp:135
+
raylib::AudioStream::SetPitch
AudioStream & SetPitch(float pitch)
Set pitch for audio stream (1.0 is base level)
Definition: AudioStream.hpp:151
+
raylib::AudioStream::IsPlaying
bool IsPlaying() const
Check if audio stream is playing.
Definition: AudioStream.hpp:128
+
raylib::AudioStream::Play
AudioStream & Play()
Play audio stream.
Definition: AudioStream.hpp:104
+
raylib::AudioStream::AudioStream
AudioStream(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels=2)
Init audio stream (to stream raw audio pcm data)
Definition: AudioStream.hpp:30
raylib::AudioStream::SetVolume
AudioStream & SetVolume(float volume)
Set volume for audio stream (1.0 is max level)
Definition: AudioStream.hpp:143
raylib::AudioStream::Unload
void Unload()
Unload audio stream and free memory.
Definition: AudioStream.hpp:90
+
raylib::AudioStream::SetBufferSizeDefault
static void SetBufferSizeDefault(int size)
Default size for new audio streams.
Definition: AudioStream.hpp:159
+
raylib::AudioStream::Pause
AudioStream & Pause()
Pause audio stream.
Definition: AudioStream.hpp:112
+
raylib::AudioStream::Resume
AudioStream & Resume()
Resume audio stream.
Definition: AudioStream.hpp:120
+
raylib::AudioStream::Update
AudioStream & Update(const void *data, int samplesCount)
Update audio stream buffers with data.
Definition: AudioStream.hpp:82
+
raylib::AudioStream::Load
bool Load(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels=2)
Init audio stream (to stream raw audio pcm data)
Definition: AudioStream.hpp:175
raylib::AudioStream::IsReady
bool IsReady()
Retrieve whether or not the audio stream is ready.
Definition: AudioStream.hpp:166
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_bounding_box_8hpp_source.html b/docs/_bounding_box_8hpp_source.html index b9d6d6c..0289e0d 100644 --- a/docs/_bounding_box_8hpp_source.html +++ b/docs/_bounding_box_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: BoundingBox.hpp Source File @@ -32,10 +32,10 @@ - + @@ -81,72 +81,85 @@ $(function() {
7 namespace raylib {
11 class BoundingBox : public ::BoundingBox {
12  public:
-
13  BoundingBox(const ::BoundingBox& box) {
-
14  set(box);
-
15  }
-
16 
-
20  BoundingBox(const ::Mesh& mesh) {
-
21  set(::GetMeshBoundingBox(mesh));
-
22  }
-
23 
-
24  BoundingBox(::Vector3 minMax) : ::BoundingBox{minMax, minMax} {}
-
25  BoundingBox(::Vector3 min, ::Vector3 max) : ::BoundingBox{min, max} {}
+
13  /*
+
14  * Set the bounding box to default: min (0, 0, 0) and max (0, 0, 0).
+
15  */
+
16  BoundingBox() : ::BoundingBox{::Vector3{0, 0, 0}, ::Vector3{ 0, 0, 0 }} {
+
17  // Nothing.
+
18  }
+
19 
+
20  /*
+
21  * Copy a bounding box from another bounding box.
+
22  */
+
23  BoundingBox(const ::BoundingBox& box) : ::BoundingBox{box.min, box.max} {
+
24  // Nothing.
+
25  }
26 
-
27  GETTERSETTER(::Vector3, Min, min)
-
28  GETTERSETTER(::Vector3, Max, max)
-
29 
-
30  BoundingBox& operator=(const ::BoundingBox& box) {
-
31  set(box);
-
32  return *this;
-
33  }
-
34 
-
38  inline BoundingBox& Draw(::Color color = {255, 255, 255, 255}) {
-
39  DrawBoundingBox(*this, color);
-
40  return *this;
-
41  }
-
42 
-
46  inline bool CheckCollision(const ::BoundingBox& box2) const {
-
47  return CheckCollisionBoxes(*this, box2);
-
48  }
-
49 
-
53  inline bool CheckCollision(::Vector3 center, float radius) const {
-
54  return CheckCollisionBoxSphere(*this, center, radius);
-
55  }
-
56 
-
60  inline bool CheckCollision(const ::Ray& ray) const {
-
61  return GetRayCollisionBox(ray, *this).hit;
-
62  }
-
63 
-
67  inline RayCollision GetCollision(const ::Ray& ray) const {
-
68  return GetRayCollisionBox(ray, *this);
-
69  }
-
70 
-
71  private:
-
72  void set(const ::BoundingBox& box) {
-
73  min = box.min;
-
74  max = box.max;
-
75  }
-
76 };
-
77 } // namespace raylib
-
78 
-
79 #endif // RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::RayCollision
Raycast hit information.
Definition: RayCollision.hpp:11
-
raylib::BoundingBox::BoundingBox
BoundingBox(const ::Mesh &mesh)
Compute mesh bounding box limits.
Definition: BoundingBox.hpp:20
-
raylib::BoundingBox::Draw
BoundingBox & Draw(::Color color={255, 255, 255, 255})
Draw a bounding box with wires.
Definition: BoundingBox.hpp:38
-
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
-
raylib::BoundingBox::CheckCollision
bool CheckCollision(::Vector3 center, float radius) const
Detect collision between box and sphere.
Definition: BoundingBox.hpp:53
-
raylib::BoundingBox::CheckCollision
bool CheckCollision(const ::BoundingBox &box2) const
Detect collision between two boxes.
Definition: BoundingBox.hpp:46
-
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
+
30  BoundingBox(const ::Mesh& mesh) {
+
31  set(::GetMeshBoundingBox(mesh));
+
32  }
+
33 
+
34  BoundingBox(::Vector3 minMax) : ::BoundingBox{minMax, minMax} {}
+
35  BoundingBox(::Vector3 min, ::Vector3 max) : ::BoundingBox{min, max} {}
+
36 
+
37  GETTERSETTER(::Vector3, Min, min)
+
38  GETTERSETTER(::Vector3, Max, max)
+
39 
+
40  BoundingBox& operator=(const ::BoundingBox& box) {
+
41  set(box);
+
42  return *this;
+
43  }
+
44 
+
48  inline BoundingBox& Draw(::Color color = {255, 255, 255, 255}) {
+
49  DrawBoundingBox(*this, color);
+
50  return *this;
+
51  }
+
52 
+
56  inline bool CheckCollision(const ::BoundingBox& box2) const {
+
57  return CheckCollisionBoxes(*this, box2);
+
58  }
+
59 
+
63  inline bool CheckCollision(::Vector3 center, float radius) const {
+
64  return CheckCollisionBoxSphere(*this, center, radius);
+
65  }
+
66 
+
70  inline bool CheckCollision(const ::Ray& ray) const {
+
71  return GetRayCollisionBox(ray, *this).hit;
+
72  }
+
73 
+
77  inline RayCollision GetCollision(const ::Ray& ray) const {
+
78  return GetRayCollisionBox(ray, *this);
+
79  }
+
80 
+
81  private:
+
82  void set(const ::BoundingBox& box) {
+
83  min = box.min;
+
84  max = box.max;
+
85  }
+
86  void set(const ::Vector3& _min, const ::Vector3& _max) {
+
87  min = _min;
+
88  max = _max;
+
89  }
+
90 };
+
91 } // namespace raylib
+
92 using RBoundingBox = raylib::BoundingBox;
+
93 
+
94 #endif // RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_
raylib::BoundingBox
Bounding box type.
Definition: BoundingBox.hpp:11
-
raylib::BoundingBox::CheckCollision
bool CheckCollision(const ::Ray &ray) const
Detect collision between ray and bounding box.
Definition: BoundingBox.hpp:60
-
raylib::BoundingBox::GetCollision
RayCollision GetCollision(const ::Ray &ray) const
Get collision information between ray and bounding box.
Definition: BoundingBox.hpp:67
+
raylib::BoundingBox::CheckCollision
bool CheckCollision(::Vector3 center, float radius) const
Detect collision between box and sphere.
Definition: BoundingBox.hpp:63
+
raylib::BoundingBox::GetCollision
RayCollision GetCollision(const ::Ray &ray) const
Get collision information between ray and bounding box.
Definition: BoundingBox.hpp:77
+
raylib::BoundingBox::BoundingBox
BoundingBox(const ::Mesh &mesh)
Compute mesh bounding box limits.
Definition: BoundingBox.hpp:30
+
raylib::BoundingBox::Draw
BoundingBox & Draw(::Color color={255, 255, 255, 255})
Draw a bounding box with wires.
Definition: BoundingBox.hpp:48
+
raylib::BoundingBox::CheckCollision
bool CheckCollision(const ::BoundingBox &box2) const
Detect collision between two boxes.
Definition: BoundingBox.hpp:56
+
raylib::BoundingBox::CheckCollision
bool CheckCollision(const ::Ray &ray) const
Detect collision between ray and bounding box.
Definition: BoundingBox.hpp:70
+
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
+
raylib::RayCollision
Raycast hit information.
Definition: RayCollision.hpp:11
+
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_camera2_d_8hpp_source.html b/docs/_camera2_d_8hpp_source.html index 1e1b104..3ca1a87 100644 --- a/docs/_camera2_d_8hpp_source.html +++ b/docs/_camera2_d_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Camera2D.hpp Source File @@ -32,10 +32,10 @@ - + @@ -100,10 +100,10 @@ $(function() {
29  return *this;
30  }
31 
-
32  GETTERSETTER(::Vector2, Offset, offset)
-
33  GETTERSETTER(::Vector2, Target, target)
-
34  GETTERSETTER(float, Rotation, rotation)
-
35  GETTERSETTER(float, Zoom, zoom)
+
32  GETTERSETTER(::Vector2, Offset, offset)
+
33  GETTERSETTER(::Vector2, Target, target)
+
34  GETTERSETTER(float, Rotation, rotation)
+
35  GETTERSETTER(float, Zoom, zoom)
36 
37  Camera2D& operator=(const ::Camera2D& camera) {
38  set(camera);
@@ -131,21 +131,20 @@ $(function() {
69  }
70 };
71 } // namespace raylib
-
72 
-
73 #endif // RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
+
72 using RCamera2D = raylib::Camera2D;
+
73 
+
74 #endif // RAYLIB_CPP_INCLUDE_CAMERA2D_HPP_
+
raylib::Camera2D
Camera2D type, defines a 2d camera.
Definition: Camera2D.hpp:12
raylib::Camera2D::GetScreenToWorld
Vector2 GetScreenToWorld(::Vector2 position) const
Returns the world space position for a 2d camera screen space position.
Definition: Camera2D.hpp:59
raylib::Camera2D::GetMatrix
Matrix GetMatrix() const
Returns camera 2d transform matrix.
Definition: Camera2D.hpp:45
-
raylib::Camera2D
Camera2D type, defines a 2d camera.
Definition: Camera2D.hpp:12
-
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
raylib::Camera2D::GetWorldToScreen
Vector2 GetWorldToScreen(::Vector2 position) const
Returns the screen space position for a 3d world space position.
Definition: Camera2D.hpp:52
+
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
+
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_camera3_d_8hpp_source.html b/docs/_camera3_d_8hpp_source.html index 200daa6..5e98bc8 100644 --- a/docs/_camera3_d_8hpp_source.html +++ b/docs/_camera3_d_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Camera3D.hpp Source File @@ -32,10 +32,10 @@ - + @@ -94,11 +94,11 @@ $(function() {
32 
33  Camera3D() {}
34 
-
35  GETTERSETTER(::Vector3, Position, position)
-
36  GETTERSETTER(::Vector3, Target, target)
-
37  GETTERSETTER(::Vector3, Up, up)
-
38  GETTERSETTER(float, Fovy, fovy)
-
39  GETTERSETTER(int, Projection, projection)
+
35  GETTERSETTER(::Vector3, Position, position)
+
36  GETTERSETTER(::Vector3, Target, target)
+
37  GETTERSETTER(::Vector3, Up, up)
+
38  GETTERSETTER(float, Fovy, fovy)
+
39  GETTERSETTER(int, Projection, projection)
40 
41  Camera3D& operator=(const ::Camera3D& camera) {
42  set(camera);
@@ -186,36 +186,36 @@ $(function() {
160 
161 typedef Camera3D Camera;
162 } // namespace raylib
-
163 
-
164 #endif // RAYLIB_CPP_INCLUDE_CAMERA3D_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
-
raylib::UpdateCamera
static void UpdateCamera(const ::Camera &camera)
Update camera depending on selected mode.
Definition: Functions.hpp:202
-
raylib::Camera3D::GetMouseRay
Ray GetMouseRay(::Vector2 mousePosition) const
Returns a ray trace from mouse position.
Definition: Camera3D.hpp:115
-
raylib::Camera3D::SetMode
Camera3D & SetMode(int mode)
Set camera mode (multiple camera modes available)
Definition: Camera3D.hpp:72
-
raylib::Camera3D::GetMatrix
Matrix GetMatrix() const
Get transform matrix for camera.
Definition: Camera3D.hpp:65
+
163 using RCamera = raylib::Camera;
+
164 using RCamera3D = raylib::Camera3D;
+
165 
+
166 #endif // RAYLIB_CPP_INCLUDE_CAMERA3D_HPP_
+
raylib::Camera3D
Camera type, defines a camera position/orientation in 3d space.
Definition: Camera3D.hpp:12
raylib::Camera3D::BeginMode
Camera3D & BeginMode()
Initializes 3D mode with custom camera (3D)
Definition: Camera3D.hpp:49
-
raylib::Camera3D::EndMode
Camera3D & EndMode()
Ends 3D mode and returns to default 2D orthographic mode.
Definition: Camera3D.hpp:57
-
raylib::Ray
Ray type (useful for raycast)
Definition: Ray.hpp:12
+
raylib::Camera3D::GetMatrix
Matrix GetMatrix() const
Get transform matrix for camera.
Definition: Camera3D.hpp:65
+
raylib::Camera3D::DrawBillboard
Camera3D & DrawBillboard(const ::Texture2D &texture, ::Rectangle sourceRec, ::Vector3 center, ::Vector2 size, ::Color tint={255, 255, 255, 255})
Draw a billboard texture defined by source.
Definition: Camera3D.hpp:141
+
raylib::Camera3D::DrawBillboard
Camera3D & DrawBillboard(const ::Texture2D &texture, ::Vector3 center, float size, ::Color tint={255, 255, 255, 255})
Draw a billboard texture.
Definition: Camera3D.hpp:129
+
raylib::Camera3D::GetWorldToScreen
Vector2 GetWorldToScreen(::Vector3 position) const
Returns the screen space position for a 3d world space position.
Definition: Camera3D.hpp:122
+
raylib::Camera3D::SetSmoothZoomControl
Camera3D & SetSmoothZoomControl(int szKey)
Set camera smooth zoom key to combine with mouse (free camera)
Definition: Camera3D.hpp:88
raylib::Camera3D::Update
Camera3D & Update()
Update camera position for selected mode.
Definition: Camera3D.hpp:107
raylib::Camera3D::SetMoveControls
Camera3D & SetMoveControls(int frontKey, int backKey, int rightKey, int leftKey, int upKey, int downKey)
Set camera move controls (1st person and 3rd person cameras)
Definition: Camera3D.hpp:96
-
raylib::Camera3D::DrawBillboard
Camera3D & DrawBillboard(const ::Texture2D &texture, ::Rectangle sourceRec, ::Vector3 center, ::Vector2 size, ::Color tint={255, 255, 255, 255})
Draw a billboard texture defined by source.
Definition: Camera3D.hpp:141
-
raylib::Camera3D::SetAltControl
Camera3D & SetAltControl(int altKey)
Set camera alt key to combine with mouse movement (free camera)
Definition: Camera3D.hpp:80
-
raylib::Camera3D::DrawBillboard
Camera3D & DrawBillboard(const ::Texture2D &texture, ::Vector3 center, float size, ::Color tint={255, 255, 255, 255})
Draw a billboard texture.
Definition: Camera3D.hpp:129
-
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
-
raylib::Camera3D
Camera type, defines a camera position/orientation in 3d space.
Definition: Camera3D.hpp:12
+
raylib::Camera3D::EndMode
Camera3D & EndMode()
Ends 3D mode and returns to default 2D orthographic mode.
Definition: Camera3D.hpp:57
+
raylib::Camera3D::SetMode
Camera3D & SetMode(int mode)
Set camera mode (multiple camera modes available)
Definition: Camera3D.hpp:72
raylib::Camera3D::Camera3D
Camera3D(::Vector3 position, ::Vector3 target=::Vector3{0.0f, 0.0f, 0.0f}, ::Vector3 up=::Vector3{0.0f, 1.0f, 0.0f}, float fovy=0, int projection=CAMERA_PERSPECTIVE)
Create a new Camera3D.
Definition: Camera3D.hpp:27
+
raylib::Camera3D::GetMouseRay
Ray GetMouseRay(::Vector2 mousePosition) const
Returns a ray trace from mouse position.
Definition: Camera3D.hpp:115
+
raylib::Camera3D::SetAltControl
Camera3D & SetAltControl(int altKey)
Set camera alt key to combine with mouse movement (free camera)
Definition: Camera3D.hpp:80
+
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
+
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
+
raylib::Ray
Ray type (useful for raycast)
Definition: Ray.hpp:12
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
-
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
-
raylib::Camera3D::SetSmoothZoomControl
Camera3D & SetSmoothZoomControl(int szKey)
Set camera smooth zoom key to combine with mouse (free camera)
Definition: Camera3D.hpp:88
-
raylib::Camera3D::GetWorldToScreen
Vector2 GetWorldToScreen(::Vector3 position) const
Returns the screen space position for a 3d world space position.
Definition: Camera3D.hpp:122
+
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+
raylib::UpdateCamera
static void UpdateCamera(const ::Camera &camera)
Update camera depending on selected mode.
Definition: Functions.hpp:202
+ diff --git a/docs/_color_8hpp_source.html b/docs/_color_8hpp_source.html index 06f9613..47905e5 100644 --- a/docs/_color_8hpp_source.html +++ b/docs/_color_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Color.hpp Source File @@ -32,10 +32,10 @@ - + @@ -132,10 +132,10 @@ $(function() {
91  return ::ColorToHSV(*this);
92  }
93 
-
94  GETTERSETTER(unsigned char, R, r)
-
95  GETTERSETTER(unsigned char, G, g)
-
96  GETTERSETTER(unsigned char, B, b)
-
97  GETTERSETTER(unsigned char, A, a)
+
94  GETTERSETTER(unsigned char, R, r)
+
95  GETTERSETTER(unsigned char, G, g)
+
96  GETTERSETTER(unsigned char, B, b)
+
97  GETTERSETTER(unsigned char, A, a)
98 
99  Color& operator=(const ::Color& color) {
100  set(color);
@@ -280,35 +280,34 @@ $(function() {
254 };
255 
256 } // namespace raylib
-
257 
-
258 #endif // RAYLIB_CPP_INCLUDE_COLOR_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Vector4
Vector4 type.
Definition: Vector4.hpp:17
-
raylib::Color::ClearBackground
Color & ClearBackground()
Set background color (framebuffer clear color)
Definition: Color.hpp:107
-
raylib::Color::Color
Color(unsigned int hexValue)
Get Color structure from hexadecimal value.
Definition: Color.hpp:48
-
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
-
raylib::Color::ToInt
int ToInt() const
Returns hexadecimal value for a Color.
Definition: Color.hpp:62
-
raylib::Color::ToHSV
Vector3 ToHSV() const
Returns HSV values for a Color.
Definition: Color.hpp:90
-
raylib::DrawTextPro
static void DrawTextPro(const Font &font, const std::string &text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint)
Draw text using Font and pro parameters (rotation)
Definition: Functions.hpp:271
-
raylib::Color::Color
Color(::Vector3 hsv)
Returns a Color from HSV values.
Definition: Color.hpp:34
-
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
-
raylib::Color::DrawPixel
Color & DrawPixel(::Vector2 pos)
Draw a pixel.
Definition: Color.hpp:120
-
raylib::Color::Color
Color(::Vector4 normalized)
Returns Color from normalized values [0..1].
Definition: Color.hpp:55
+
257 using RColor = raylib::Color;
+
258 
+
259 #endif // RAYLIB_CPP_INCLUDE_COLOR_HPP_
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
-
raylib::Color::Color
Color()
Black.
Definition: Color.hpp:29
-
raylib::Color::FromHSV
::Color FromHSV(float hue, float saturation, float value)
Returns a Color from HSV values.
Definition: Color.hpp:41
-
raylib::Color::Alpha
Color Alpha(float alpha) const
Returns color with alpha applied, alpha goes from 0.0f to 1.0f.
Definition: Color.hpp:209
raylib::Color::AlphaBlend
Color AlphaBlend(::Color dst, ::Color tint) const
Returns src alpha-blended into dst color with tint.
Definition: Color.hpp:216
+
raylib::Color::DrawPixel
Color & DrawPixel(::Vector2 pos)
Draw a pixel.
Definition: Color.hpp:120
+
raylib::Color::Color
Color(::Vector3 hsv)
Returns a Color from HSV values.
Definition: Color.hpp:34
+
raylib::Color::FromHSV
::Color FromHSV(float hue, float saturation, float value)
Returns a Color from HSV values.
Definition: Color.hpp:41
raylib::Color::Normalize
Vector4 Normalize() const
Returns Color normalized as float [0..1].
Definition: Color.hpp:83
-
raylib::Color::DrawLine
Color & DrawLine(int startPosX, int startPosY, int endPosX, int endPosY)
Draw a line.
Definition: Color.hpp:128
raylib::Color::Fade
Color Fade(float alpha) const
Returns color with alpha applied, alpha goes from 0.0f to 1.0f.
Definition: Color.hpp:76
+
raylib::Color::ToInt
int ToInt() const
Returns hexadecimal value for a Color.
Definition: Color.hpp:62
+
raylib::Color::Color
Color(::Vector4 normalized)
Returns Color from normalized values [0..1].
Definition: Color.hpp:55
+
raylib::Color::DrawLine
Color & DrawLine(int startPosX, int startPosY, int endPosX, int endPosY)
Draw a line.
Definition: Color.hpp:128
+
raylib::Color::ToHSV
Vector3 ToHSV() const
Returns HSV values for a Color.
Definition: Color.hpp:90
+
raylib::Color::Color
Color()
Black.
Definition: Color.hpp:29
+
raylib::Color::ClearBackground
Color & ClearBackground()
Set background color (framebuffer clear color)
Definition: Color.hpp:107
+
raylib::Color::Alpha
Color Alpha(float alpha) const
Returns color with alpha applied, alpha goes from 0.0f to 1.0f.
Definition: Color.hpp:209
+
raylib::Color::Color
Color(unsigned int hexValue)
Get Color structure from hexadecimal value.
Definition: Color.hpp:48
+
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
+
raylib::Vector4
Vector4 type.
Definition: Vector4.hpp:17
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+
raylib::DrawTextPro
static void DrawTextPro(const Font &font, const std::string &text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint)
Draw text using Font and pro parameters (rotation)
Definition: Functions.hpp:271
raylib::DrawTextEx
static void DrawTextEx(const Font &font, const std::string &text, Vector2 position, float fontSize, float spacing, ::Color tint)
Draw text using font and additional parameters.
Definition: Functions.hpp:263
+ diff --git a/docs/_font_8hpp_source.html b/docs/_font_8hpp_source.html index 6af15ec..435bce2 100644 --- a/docs/_font_8hpp_source.html +++ b/docs/_font_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Font.hpp Source File @@ -32,10 +32,10 @@ - + @@ -147,12 +147,12 @@ $(function() {
108  UnloadFont(*this);
109  }
110 
-
111  GETTERSETTER(int, BaseSize, baseSize)
-
112  GETTERSETTER(int, GlyphCount, glyphCount)
-
113  GETTERSETTER(int, GlyphPadding, glyphPadding)
-
114  GETTERSETTER(::Texture2D, Texture, texture)
-
115  GETTERSETTER(::Rectangle*, Recs, recs)
-
116  GETTERSETTER(::GlyphInfo*, Glyphs, glyphs)
+
111  GETTERSETTER(int, BaseSize, baseSize)
+
112  GETTERSETTER(int, GlyphCount, glyphCount)
+
113  GETTERSETTER(int, GlyphPadding, glyphPadding)
+
114  GETTERSETTER(::Texture2D, Texture, texture)
+
115  GETTERSETTER(::Rectangle*, Recs, recs)
+
116  GETTERSETTER(::GlyphInfo*, Glyphs, glyphs)
117 
118  Font& operator=(const ::Font& font) {
119  Unload();
@@ -252,36 +252,35 @@ $(function() {
247  }
248 };
249 } // namespace raylib
-
250 
-
251 #endif // RAYLIB_CPP_INCLUDE_FONT_HPP_
- -
raylib::Font::Font
Font(const std::string &fileName)
Loads a Font from the given file.
Definition: Font.hpp:40
-
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Font::DrawText
Font & DrawText(const std::string &text, ::Vector2 position, float fontSize, float spacing, ::Color tint=WHITE)
Draw text using font and additional parameters.
Definition: Font.hpp:188
-
raylib::LoadFont
static inline ::Font LoadFont(const std::string &fileName)
Load font from file (filename must include file extension)
Definition: Functions.hpp:279
-
raylib::Font::Font
Font(const ::Image &image, ::Color key, int firstChar)
Loads a Font from the given image with a color key.
Definition: Font.hpp:70
-
raylib::Font::DrawText
Font & DrawText(int codepoint, ::Vector2 position, float fontSize, ::Color tint={ 255, 255, 255, 255 })
Draw one character (codepoint)
Definition: Font.hpp:209
-
raylib::Font::Font
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.
Definition: Font.hpp:83
-
raylib::Font::Font
Font(const std::string &fileName, int fontSize, int *fontChars=0, int charCount=0)
Loads a Font from the given file, with generation parameters.
Definition: Font.hpp:55
-
raylib::DrawTextPro
static void DrawTextPro(const Font &font, const std::string &text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint)
Draw text using Font and pro parameters (rotation)
Definition: Functions.hpp:271
-
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
-
raylib::Font
Font type, includes texture and charSet array data.
Definition: Font.hpp:14
-
raylib::Font::GetGlyphIndex
int GetGlyphIndex(int character) const
Get index position for a unicode character on font.
Definition: Font.hpp:227
-
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
250 using RFont = raylib::Font;
+
251 
+
252 #endif // RAYLIB_CPP_INCLUDE_FONT_HPP_
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
-
raylib::LoadFontEx
static inline ::Font LoadFontEx(const std::string &fileName, int fontSize, int *fontChars, int charsCount)
Load font from file (filename must include file extension)
Definition: Functions.hpp:286
-
raylib::Font::ImageText
inline ::Image ImageText(const std::string &text, float fontSize, float spacing, ::Color tint) const
Create an image from text (custom sprite font)
Definition: Font.hpp:234
-
raylib::Font::Load
bool Load(const std::string &fileName, int fontSize, int *fontChars, int charCount)
Loads a font from a given file with generation parameters.
Definition: Font.hpp:168
-
raylib::Texture
Texture type.
Definition: Texture.hpp:16
+
raylib::Font
Font type, includes texture and charSet array data.
Definition: Font.hpp:14
+
raylib::Font::Font
Font(const std::string &fileName, int fontSize, int *fontChars=0, int charCount=0)
Loads a Font from the given file, with generation parameters.
Definition: Font.hpp:55
+
raylib::Font::DrawText
Font & DrawText(int codepoint, ::Vector2 position, float fontSize, ::Color tint={ 255, 255, 255, 255 })
Draw one character (codepoint)
Definition: Font.hpp:209
raylib::Font::MeasureText
Vector2 MeasureText(const std::string &text, float fontSize, float spacing) const
Measure string size for Font.
Definition: Font.hpp:220
+
raylib::Font::Font
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.
Definition: Font.hpp:83
+
raylib::Font::GetGlyphIndex
int GetGlyphIndex(int character) const
Get index position for a unicode character on font.
Definition: Font.hpp:227
raylib::Font::Load
bool Load(const std::string &fileName)
Loads a font from a given file.
Definition: Font.hpp:153
+
raylib::Font::Font
Font(const std::string &fileName)
Loads a Font from the given file.
Definition: Font.hpp:40
+
raylib::Font::Load
bool Load(const std::string &fileName, int fontSize, int *fontChars, int charCount)
Loads a font from a given file with generation parameters.
Definition: Font.hpp:168
+
raylib::Font::DrawText
Font & DrawText(const std::string &text, ::Vector2 position, float fontSize, float spacing, ::Color tint=WHITE)
Draw text using font and additional parameters.
Definition: Font.hpp:188
+
raylib::Font::Font
Font(const ::Image &image, ::Color key, int firstChar)
Loads a Font from the given image with a color key.
Definition: Font.hpp:70
+
raylib::Font::ImageText
inline ::Image ImageText(const std::string &text, float fontSize, float spacing, ::Color tint) const
Create an image from text (custom sprite font)
Definition: Font.hpp:234
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
+
raylib::Texture
Texture type.
Definition: Texture.hpp:16
+
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+
raylib::LoadFontEx
static inline ::Font LoadFontEx(const std::string &fileName, int fontSize, int *fontChars, int charsCount)
Load font from file (filename must include file extension)
Definition: Functions.hpp:286
+
raylib::LoadFont
static inline ::Font LoadFont(const std::string &fileName)
Load font from file (filename must include file extension)
Definition: Functions.hpp:279
+
raylib::DrawTextPro
static void DrawTextPro(const Font &font, const std::string &text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint)
Draw text using Font and pro parameters (rotation)
Definition: Functions.hpp:271
raylib::DrawTextEx
static void DrawTextEx(const Font &font, const std::string &text, Vector2 position, float fontSize, float spacing, ::Color tint)
Draw text using font and additional parameters.
Definition: Functions.hpp:263
+ diff --git a/docs/_functions_8hpp_source.html b/docs/_functions_8hpp_source.html index 232eabd..61d03ac 100644 --- a/docs/_functions_8hpp_source.html +++ b/docs/_functions_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Functions.hpp Source File @@ -32,10 +32,10 @@ - + @@ -316,66 +316,64 @@ $(function() {
388 
389 } // namespace raylib
390 
-
391 #endif // RAYLIB_CPP_INCLUDE_FUNCTIONS_HPP_
- -
raylib::TextToPascal
RLAPI std::string TextToPascal(const std::string &text)
Get Pascal case notation version of provided string.
Definition: Functions.hpp:378
-
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::LoadImage
static inline ::Image LoadImage(const std::string &fileName)
Load an image.
Definition: Functions.hpp:210
-
raylib::GetFileName
static std::string GetFileName(const std::string &filePath)
Get pointer to filename for a path string.
Definition: Functions.hpp:119
-
raylib::UpdateCamera
static void UpdateCamera(const ::Camera &camera)
Update camera depending on selected mode.
Definition: Functions.hpp:202
-
raylib::TextFindIndex
RLAPI int TextFindIndex(const std::string &text, const std::string &find)
Find first text occurrence within a string.
Definition: Functions.hpp:357
-
raylib::LoadImageRaw
static inline ::Image LoadImageRaw(const std::string &fileName, int width, int height, int format, int headerSize)
Load an image from RAW file data.
Definition: Functions.hpp:217
-
raylib::GetPrevDirectoryPath
static std::string GetPrevDirectoryPath(const std::string &dirPath)
Get previous directory path for a given path.
Definition: Functions.hpp:140
-
raylib::TextIsEqual
static bool TextIsEqual(const std::string &text1, const std::string &text2)
Check if two text string are equal.
Definition: Functions.hpp:300
-
raylib::LoadImageFromMemory
static inline ::Image LoadImageFromMemory(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load image from memory buffer, fileType refers to extension like "png".
Definition: Functions.hpp:233
-
raylib::SetWindowTitle
static void SetWindowTitle(const std::string &title)
Set title for window.
Definition: Functions.hpp:31
-
raylib::TextSplit
RLAPI std::vector< std::string > TextSplit(const std::string &text, char delimiter)
Split text into multiple strings.
Definition: Functions.hpp:348
-
raylib::Image
Image type, bpp always RGBA (32bit)
Definition: Image.hpp:16
-
raylib::GetMonitorName
static std::string GetMonitorName(int monitor=0)
Get the human-readable, UTF-8 encoded name of the primary monitor.
Definition: Functions.hpp:38
-
raylib::LoadImageAnim
static inline ::Image LoadImageAnim(const std::string &fileName, int *frames)
Load animated image data.
Definition: Functions.hpp:226
-
raylib::LoadFont
static inline ::Font LoadFont(const std::string &fileName)
Load font from file (filename must include file extension)
Definition: Functions.hpp:279
-
raylib::TextToUpper
RLAPI std::string TextToUpper(const std::string &text)
Get upper case version of provided string.
Definition: Functions.hpp:364
-
raylib::GetFileModTime
static long GetFileModTime(const std::string &fileName)
Get file modification time (last write time)
Definition: Functions.hpp:188
-
raylib::TakeScreenshot
static void TakeScreenshot(const std::string &fileName)
Takes a screenshot of current screen (saved a .png)
Definition: Functions.hpp:59
-
raylib::GetDroppedFiles
static std::vector< std::string > GetDroppedFiles()
Get dropped files names.
Definition: Functions.hpp:174
-
raylib::GetGamepadName
static std::string GetGamepadName(int gamepad)
Get gamepad internal name id.
Definition: Functions.hpp:66
-
raylib::TextSubtext
RLAPI std::string TextSubtext(const std::string &text, int position, int length)
Get text length, checks for '\0' ending.
Definition: Functions.hpp:314
-
raylib::InitWindow
static void InitWindow(int width, int height, const std::string &title="raylib")
Initialize window and OpenGL context.
Definition: Functions.hpp:24
-
raylib::ExportImageAsCode
static bool ExportImageAsCode(const Image &image, const std::string &fileName)
Export image as code file (.h) defining an array of bytes.
Definition: Functions.hpp:249
+
391 #endif // RAYLIB_CPP_INCLUDE_FUNCTIONS_HPP_
raylib::Camera3D
Camera type, defines a camera position/orientation in 3d space.
Definition: Camera3D.hpp:12
-
raylib::DirectoryExists
static bool DirectoryExists(const std::string &dirPath)
Check if directory path exists.
Definition: Functions.hpp:98
-
raylib::GetFileNameWithoutExt
static std::string GetFileNameWithoutExt(const std::string &filePath)
Get filename string without extension.
Definition: Functions.hpp:126
-
raylib::GetDirectoryPath
static std::string GetDirectoryPath(const std::string &filePath)
Get full path for a given fileName with path.
Definition: Functions.hpp:133
-
raylib::IsFileExtension
static bool IsFileExtension(const std::string &fileName, const std::string &ext)
Check file extension (including point: .png, .wav)
Definition: Functions.hpp:105
-
raylib::FileExists
static bool FileExists(const std::string &fileName)
Check if file exists.
Definition: Functions.hpp:91
-
raylib::GetDirectoryFiles
static std::vector< std::string > GetDirectoryFiles(const std::string &dirPath)
Get filenames in a directory path.
Definition: Functions.hpp:155
-
raylib::DrawTextPro
static void DrawTextPro(const Font &font, const std::string &text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint)
Draw text using Font and pro parameters (rotation)
Definition: Functions.hpp:271
+
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
raylib::Font
Font type, includes texture and charSet array data.
Definition: Font.hpp:14
-
raylib::ExportImage
static bool ExportImage(const Image &image, const std::string &fileName)
Export image data to file.
Definition: Functions.hpp:242
-
raylib::ChangeDirectory
static bool ChangeDirectory(const std::string &dir)
Change working directory, return true on success.
Definition: Functions.hpp:166
+
raylib::Image
Image type, bpp always RGBA (32bit)
Definition: Image.hpp:16
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+
raylib::GetDirectoryFiles
static std::vector< std::string > GetDirectoryFiles(const std::string &dirPath)
Get filenames in a directory path.
Definition: Functions.hpp:155
+
raylib::ExportImageAsCode
static bool ExportImageAsCode(const Image &image, const std::string &fileName)
Export image as code file (.h) defining an array of bytes.
Definition: Functions.hpp:249
+
raylib::GetDroppedFiles
static std::vector< std::string > GetDroppedFiles()
Get dropped files names.
Definition: Functions.hpp:174
+
raylib::TextToUpper
RLAPI std::string TextToUpper(const std::string &text)
Get upper case version of provided string.
Definition: Functions.hpp:364
+
raylib::DirectoryExists
static bool DirectoryExists(const std::string &dirPath)
Check if directory path exists.
Definition: Functions.hpp:98
+
raylib::TextToLower
RLAPI std::string TextToLower(const std::string &text)
Get lower case version of provided string.
Definition: Functions.hpp:371
+
raylib::LoadImage
static inline ::Image LoadImage(const std::string &fileName)
Load an image.
Definition: Functions.hpp:210
+
raylib::TextFindIndex
RLAPI int TextFindIndex(const std::string &text, const std::string &find)
Find first text occurrence within a string.
Definition: Functions.hpp:357
+
raylib::GetWorkingDirectory
static std::string GetWorkingDirectory()
Get current working directory.
Definition: Functions.hpp:147
+
raylib::TextLength
static unsigned int TextLength(const std::string &text)
Check if two text string are equal.
Definition: Functions.hpp:307
+
raylib::GetGamepadName
static std::string GetGamepadName(int gamepad)
Get gamepad internal name id.
Definition: Functions.hpp:66
+
raylib::LoadFontEx
static inline ::Font LoadFontEx(const std::string &fileName, int fontSize, int *fontChars, int charsCount)
Load font from file (filename must include file extension)
Definition: Functions.hpp:286
+
raylib::LoadFont
static inline ::Font LoadFont(const std::string &fileName)
Load font from file (filename must include file extension)
Definition: Functions.hpp:279
+
raylib::ExportImage
static bool ExportImage(const Image &image, const std::string &fileName)
Export image data to file.
Definition: Functions.hpp:242
+
raylib::DrawText
static void DrawText(const std::string &text, int posX, int posY, int fontSize, ::Color color)
Draw text (using default font)
Definition: Functions.hpp:256
+
raylib::TextSubtext
RLAPI std::string TextSubtext(const std::string &text, int position, int length)
Get text length, checks for '\0' ending.
Definition: Functions.hpp:314
+
raylib::TextToPascal
RLAPI std::string TextToPascal(const std::string &text)
Get Pascal case notation version of provided string.
Definition: Functions.hpp:378
+
raylib::SaveFileText
static bool SaveFileText(const std::string &fileName, const std::string &text)
Save text data to file (write)
Definition: Functions.hpp:84
+
raylib::IsFileExtension
static bool IsFileExtension(const std::string &fileName, const std::string &ext)
Check file extension (including point: .png, .wav)
Definition: Functions.hpp:105
+
raylib::TextToInteger
RLAPI int TextToInteger(const std::string &text)
Get integer value from text (negative values not supported)
Definition: Functions.hpp:385
+
raylib::GetFileName
static std::string GetFileName(const std::string &filePath)
Get pointer to filename for a path string.
Definition: Functions.hpp:119
+
raylib::LoadImageFromMemory
static inline ::Image LoadImageFromMemory(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load image from memory buffer, fileType refers to extension like "png".
Definition: Functions.hpp:233
+
raylib::GetMonitorName
static std::string GetMonitorName(int monitor=0)
Get the human-readable, UTF-8 encoded name of the primary monitor.
Definition: Functions.hpp:38
raylib::MeasureText
static int MeasureText(const std::string &text, int fontSize)
Measure string width for default font.
Definition: Functions.hpp:293
raylib::TextReplace
RLAPI std::string TextReplace(const std::string &text, const std::string &replace, const std::string &by)
Replace text string.
Definition: Functions.hpp:321
+
raylib::TakeScreenshot
static void TakeScreenshot(const std::string &fileName)
Takes a screenshot of current screen (saved a .png)
Definition: Functions.hpp:59
raylib::SetClipboardText
static void SetClipboardText(const std::string &text)
Set clipboard text content.
Definition: Functions.hpp:45
-
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
-
raylib::LoadFontEx
static inline ::Font LoadFontEx(const std::string &fileName, int fontSize, int *fontChars, int charsCount)
Load font from file (filename must include file extension)
Definition: Functions.hpp:286
-
raylib::GetFileExtension
static std::string GetFileExtension(const std::string &fileName)
Get pointer to extension for a filename string (including point: ".png")
Definition: Functions.hpp:112
-
raylib::SaveFileText
static bool SaveFileText(const std::string &fileName, const std::string &text)
Save text data to file (write)
Definition: Functions.hpp:84
-
raylib::TextToLower
RLAPI std::string TextToLower(const std::string &text)
Get lower case version of provided string.
Definition: Functions.hpp:371
-
raylib::DrawText
static void DrawText(const std::string &text, int posX, int posY, int fontSize, ::Color color)
Draw text (using default font)
Definition: Functions.hpp:256
-
raylib::LoadFileText
static std::string LoadFileText(const std::string &fileName)
Load text data from file (read)
Definition: Functions.hpp:74
-
raylib::OpenURL
static void OpenURL(const std::string &url)
Open URL with default system browser (if available)
Definition: Functions.hpp:195
-
raylib::TextLength
static unsigned int TextLength(const std::string &text)
Check if two text string are equal.
Definition: Functions.hpp:307
-
raylib::DrawTextEx
static void DrawTextEx(const Font &font, const std::string &text, Vector2 position, float fontSize, float spacing, ::Color tint)
Draw text using font and additional parameters.
Definition: Functions.hpp:263
-
raylib::GetWorkingDirectory
static std::string GetWorkingDirectory()
Get current working directory.
Definition: Functions.hpp:147
raylib::TextInsert
RLAPI std::string TextInsert(const std::string &text, const std::string &insert, int position)
Insert text in a position.
Definition: Functions.hpp:335
+
raylib::SetWindowTitle
static void SetWindowTitle(const std::string &title)
Set title for window.
Definition: Functions.hpp:31
+
raylib::FileExists
static bool FileExists(const std::string &fileName)
Check if file exists.
Definition: Functions.hpp:91
+
raylib::InitWindow
static void InitWindow(int width, int height, const std::string &title="raylib")
Initialize window and OpenGL context.
Definition: Functions.hpp:24
+
raylib::TextSplit
RLAPI std::vector< std::string > TextSplit(const std::string &text, char delimiter)
Split text into multiple strings.
Definition: Functions.hpp:348
+
raylib::LoadImageAnim
static inline ::Image LoadImageAnim(const std::string &fileName, int *frames)
Load animated image data.
Definition: Functions.hpp:226
+
raylib::LoadFileText
static std::string LoadFileText(const std::string &fileName)
Load text data from file (read)
Definition: Functions.hpp:74
+
raylib::GetFileModTime
static long GetFileModTime(const std::string &fileName)
Get file modification time (last write time)
Definition: Functions.hpp:188
+
raylib::GetFileExtension
static std::string GetFileExtension(const std::string &fileName)
Get pointer to extension for a filename string (including point: ".png")
Definition: Functions.hpp:112
+
raylib::UpdateCamera
static void UpdateCamera(const ::Camera &camera)
Update camera depending on selected mode.
Definition: Functions.hpp:202
+
raylib::OpenURL
static void OpenURL(const std::string &url)
Open URL with default system browser (if available)
Definition: Functions.hpp:195
+
raylib::GetFileNameWithoutExt
static std::string GetFileNameWithoutExt(const std::string &filePath)
Get filename string without extension.
Definition: Functions.hpp:126
+
raylib::LoadImageRaw
static inline ::Image LoadImageRaw(const std::string &fileName, int width, int height, int format, int headerSize)
Load an image from RAW file data.
Definition: Functions.hpp:217
+
raylib::DrawTextPro
static void DrawTextPro(const Font &font, const std::string &text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint)
Draw text using Font and pro parameters (rotation)
Definition: Functions.hpp:271
+
raylib::GetPrevDirectoryPath
static std::string GetPrevDirectoryPath(const std::string &dirPath)
Get previous directory path for a given path.
Definition: Functions.hpp:140
+
raylib::DrawTextEx
static void DrawTextEx(const Font &font, const std::string &text, Vector2 position, float fontSize, float spacing, ::Color tint)
Draw text using font and additional parameters.
Definition: Functions.hpp:263
+
raylib::ChangeDirectory
static bool ChangeDirectory(const std::string &dir)
Change working directory, return true on success.
Definition: Functions.hpp:166
+
raylib::GetDirectoryPath
static std::string GetDirectoryPath(const std::string &filePath)
Get full path for a given fileName with path.
Definition: Functions.hpp:133
+
raylib::TextIsEqual
static bool TextIsEqual(const std::string &text1, const std::string &text2)
Check if two text string are equal.
Definition: Functions.hpp:300
raylib::GetClipboardText
static std::string GetClipboardText()
Get clipboard text content.
Definition: Functions.hpp:52
-
raylib::TextToInteger
RLAPI int TextToInteger(const std::string &text)
Get integer value from text (negative values not supported)
Definition: Functions.hpp:385
+ diff --git a/docs/_gamepad_8hpp_source.html b/docs/_gamepad_8hpp_source.html index 7fd7d74..38294dc 100644 --- a/docs/_gamepad_8hpp_source.html +++ b/docs/_gamepad_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Gamepad.hpp Source File @@ -32,10 +32,10 @@ - + @@ -88,7 +88,7 @@ $(function() {
17  }
18  int number;
19 
-
20  GETTERSETTER(int, Number, number)
+
20  GETTERSETTER(int, Number, number)
21 
22  Gamepad& operator=(const Gamepad& gamepad) {
23  set(gamepad);
@@ -152,26 +152,25 @@ $(function() {
114  }
115 };
116 } // namespace raylib
-
117 
-
118 #endif // RAYLIB_CPP_INCLUDE_GAMEPAD_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Gamepad::GetAxisMovement
float GetAxisMovement(int axis) const
Return axis movement value for a gamepad axis.
Definition: Gamepad.hpp:107
-
raylib::Gamepad::IsButtonReleased
bool IsButtonReleased(int button) const
Detect if a gamepad button has been released once.
Definition: Gamepad.hpp:79
-
raylib::Gamepad::IsButtonUp
bool IsButtonUp(int button) const
Detect if a gamepad button is NOT being pressed.
Definition: Gamepad.hpp:86
-
raylib::Gamepad::GetName
std::string GetName() const
Return gamepad internal name id.
Definition: Gamepad.hpp:51
+
117 using RGamepad = raylib::Gamepad;
+
118 
+
119 #endif // RAYLIB_CPP_INCLUDE_GAMEPAD_HPP_
raylib::Gamepad
Input-related functions: gamepads.
Definition: Gamepad.hpp:13
-
raylib::Gamepad::IsButtonPressed
bool IsButtonPressed(int button) const
Detect if a gamepad button has been pressed once.
Definition: Gamepad.hpp:65
-
raylib::Gamepad::IsButtonDown
bool IsButtonDown(int button) const
Detect if a gamepad button is being pressed.
Definition: Gamepad.hpp:72
-
raylib::Gamepad::GetButtonPressed
int GetButtonPressed() const
Get the last gamepad button pressed.
Definition: Gamepad.hpp:93
-
raylib::Gamepad::IsAvailable
bool IsAvailable() const
Detect if a gamepad is available.
Definition: Gamepad.hpp:37
+
raylib::Gamepad::IsButtonReleased
bool IsButtonReleased(int button) const
Detect if a gamepad button has been released once.
Definition: Gamepad.hpp:79
raylib::Gamepad::GetAxisCount
int GetAxisCount() const
Return gamepad axis count for a gamepad.
Definition: Gamepad.hpp:100
raylib::Gamepad::IsAvailable
static bool IsAvailable(int number)
Detect if a gamepad is available.
Definition: Gamepad.hpp:44
+
raylib::Gamepad::IsAvailable
bool IsAvailable() const
Detect if a gamepad is available.
Definition: Gamepad.hpp:37
+
raylib::Gamepad::GetButtonPressed
int GetButtonPressed() const
Get the last gamepad button pressed.
Definition: Gamepad.hpp:93
+
raylib::Gamepad::IsButtonDown
bool IsButtonDown(int button) const
Detect if a gamepad button is being pressed.
Definition: Gamepad.hpp:72
+
raylib::Gamepad::GetName
std::string GetName() const
Return gamepad internal name id.
Definition: Gamepad.hpp:51
+
raylib::Gamepad::IsButtonUp
bool IsButtonUp(int button) const
Detect if a gamepad button is NOT being pressed.
Definition: Gamepad.hpp:86
+
raylib::Gamepad::IsButtonPressed
bool IsButtonPressed(int button) const
Detect if a gamepad button has been pressed once.
Definition: Gamepad.hpp:65
+
raylib::Gamepad::GetAxisMovement
float GetAxisMovement(int axis) const
Return axis movement value for a gamepad axis.
Definition: Gamepad.hpp:107
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_image_8hpp_source.html b/docs/_image_8hpp_source.html index 2ffe1f9..e7cc5c9 100644 --- a/docs/_image_8hpp_source.html +++ b/docs/_image_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Image.hpp Source File @@ -32,10 +32,10 @@ - + @@ -87,8 +87,8 @@ $(function() {
18  Image(void* data = nullptr,
19  int width = 0,
20  int height = 0,
-
21  int mipmaps = 0,
-
22  int format = 0) : ::Image{data, width, height, mipmaps, format} {
+
21  int mipmaps = 1,
+
22  int format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8) : ::Image{data, width, height, mipmaps, format} {
23  // Nothing.
24  }
25 
@@ -278,11 +278,11 @@ $(function() {
308  return ::ExportImageAsCode(*this, fileName.c_str());
309  }
310 
-
311  GETTERSETTER(void*, Data, data)
-
312  GETTERSETTER(int, Width, width)
-
313  GETTERSETTER(int, Height, height)
-
314  GETTERSETTER(int, Mipmaps, mipmaps)
-
315  GETTERSETTER(int, Format, format)
+
311  GETTERSETTER(void*, Data, data)
+
312  GETTERSETTER(int, Width, width)
+
313  GETTERSETTER(int, Height, height)
+
314  GETTERSETTER(int, Mipmaps, mipmaps)
+
315  GETTERSETTER(int, Format, format)
316 
320  inline ::Vector2 GetSize() const {
321  return {static_cast<float>(width), static_cast<float>(height)};
@@ -566,84 +566,83 @@ $(function() {
728  }
729 };
730 } // namespace raylib
-
731 
-
732 #endif // RAYLIB_CPP_INCLUDE_IMAGE_HPP_
- -
raylib::Image::Dither
Image & Dither(int rBpp, int gBpp, int bBpp, int aBpp)
Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
Definition: Image.hpp:458
-
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Image::ColorBrightness
Image & ColorBrightness(int brightness)
Modify image color: brightness.
Definition: Image.hpp:534
-
raylib::Image::WhiteNoise
::Image WhiteNoise(int width, int height, float factor)
Generate image: white noise.
Definition: Image.hpp:175
-
raylib::LoadImage
static inline ::Image LoadImage(const std::string &fileName)
Load an image.
Definition: Functions.hpp:210
-
raylib::LoadImageRaw
static inline ::Image LoadImageRaw(const std::string &fileName, int width, int height, int format, int headerSize)
Load an image from RAW file data.
Definition: Functions.hpp:217
-
raylib::Image::GradientRadial
::Image GradientRadial(int width, int height, float density, ::Color inner, ::Color outer)
Generate image: radial gradient.
Definition: Image.hpp:159
-
raylib::Image::Image
Image(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load an image from the given file.
Definition: Image.hpp:74
-
raylib::Image::ToPOT
Image & ToPOT(::Color fillColor)
Convert image to POT (power-of-two)
Definition: Image.hpp:341
-
raylib::LoadImageFromMemory
static inline ::Image LoadImageFromMemory(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load image from memory buffer, fileType refers to extension like "png".
Definition: Functions.hpp:233
-
raylib::Image::Format
Image & Format(int newFormat)
Convert image data to desired format.
Definition: Image.hpp:349
-
raylib::Image::Crop
Image & Crop(::Vector2 size)
Crop an image to a new given width and height based on a vector.
Definition: Image.hpp:404
-
raylib::Image::ColorInvert
Image & ColorInvert()
Modify image color: invert.
Definition: Image.hpp:506
-
raylib::Image::ColorGrayscale
Image & ColorGrayscale()
Modify image color: grayscale.
Definition: Image.hpp:514
-
raylib::Image
Image type, bpp always RGBA (32bit)
Definition: Image.hpp:16
-
raylib::Image::Load
bool Load(const ::Texture2D &texture)
Load an image from the given file.
Definition: Image.hpp:281
-
raylib::Image::FromImage
inline ::Image FromImage(::Rectangle rec) const
Create an image from another image piece.
Definition: Image.hpp:334
-
raylib::Image::Crop
Image & Crop(::Rectangle crop)
Crop an image to area defined by a rectangle.
Definition: Image.hpp:389
-
raylib::Image::Crop
Image & Crop(int newWidth, int newHeight)
Crop an image to a new given width and height.
Definition: Image.hpp:397
-
raylib::Image::Image
Image(const std::string &fileName)
Load an image from the given file.
Definition: Image.hpp:37
-
raylib::LoadImageAnim
static inline ::Image LoadImageAnim(const std::string &fileName, int *frames)
Load animated image data.
Definition: Functions.hpp:226
-
raylib::Image::ExportAsCode
bool ExportAsCode(const std::string &fileName) const
Export image as code file defining an array of bytes, returns true on success.
Definition: Image.hpp:307
-
raylib::Image::RotateCCW
Image & RotateCCW()
Rotate image counter-clockwise 90deg.
Definition: Image.hpp:490
-
raylib::Image::LoadPalette
inline ::Color * LoadPalette(int maxPaletteSize, int *colorsCount) const
Load colors palette from image as a Color array (RGBA - 32bit)
Definition: Image.hpp:662
-
raylib::Image::FlipVertical
Image & FlipVertical()
Flip image vertically.
Definition: Image.hpp:466
-
raylib::Image::LoadFromScreen
::Image LoadFromScreen()
Get pixel data from screen buffer and return an Image (screenshot)
Definition: Image.hpp:131
-
raylib::Image::Load
bool Load(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load image from memory buffer, fileType refers to extension: i.e.
Definition: Image.hpp:266
-
raylib::Image::Export
bool Export(const std::string &fileName) const
Export image data to file, returns true on success.
Definition: Image.hpp:299
-
raylib::Image::Load
bool Load(const std::string &fileName, int width, int height, int format, int headerSize)
Load image from RAW file data.
Definition: Image.hpp:242
-
raylib::Image::ColorContrast
Image & ColorContrast(float contrast)
Modify image color: contrast.
Definition: Image.hpp:524
-
raylib::Image::IsReady
bool IsReady() const
Retrieve whether or not the Image has been loaded.
Definition: Image.hpp:717
-
raylib::Image::AlphaClear
Image & AlphaClear(::Color color, float threshold)
Clear alpha channel to desired color.
Definition: Image.hpp:365
-
raylib::Image::LoadTexture
inline ::Texture2D LoadTexture() const
Load texture from image data.
Definition: Image.hpp:683
-
raylib::Image::AlphaPremultiply
Image & AlphaPremultiply()
Premultiply alpha channel.
Definition: Image.hpp:381
-
raylib::Image::Crop
Image & Crop(int offsetX, int offsetY, int newWidth, int newHeight)
Crop an image to area defined by a rectangle.
Definition: Image.hpp:411
-
raylib::Image::DrawPixel
Image & DrawPixel(int posX, int posY, ::Color color={255, 255, 255, 255})
Draw pixel within an image.
Definition: Image.hpp:567
-
raylib::Image::Mipmaps
Image & Mipmaps()
Generate all mipmap levels for a provided image.
Definition: Image.hpp:450
-
raylib::Image::Image
Image(const std::string &fileName, int width, int height, int format, int headerSize)
Load a raw image from the given file, with the provided width, height, and formats.
Definition: Image.hpp:50
-
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
-
raylib::Image::Load
bool Load(const std::string &fileName, int *frames)
Load image sequence from file (frames appended to image.data).
Definition: Image.hpp:254
-
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
-
raylib::Image::GradientV
::Image GradientV(int width, int height, ::Color top, ::Color bottom)
Generate image: vertical gradient.
Definition: Image.hpp:145
-
raylib::Image::ColorTint
Image & ColorTint(::Color color={255, 255, 255, 255})
Modify image color: tint.
Definition: Image.hpp:498
-
raylib::Image::GetAlphaBorder
Rectangle GetAlphaBorder(float threshold) const
Get image alpha border rectangle.
Definition: Image.hpp:552
-
raylib::Image::Load
bool Load(const std::string &fileName)
Load image from file into CPU memory (RAM)
Definition: Image.hpp:230
-
raylib::Image::ResizeCanvas
Image & ResizeCanvas(int newWidth, int newHeight, int offsetX=0, int offsetY=0, ::Color color={255, 255, 255, 255})
Resize canvas and fill with color.
Definition: Image.hpp:441
-
raylib::Image::UnloadPalette
void UnloadPalette(::Color *colors) const
Unload colors palette loaded with LoadImagePalette()
Definition: Image.hpp:676
+
731 using RImage = raylib::Image;
+
732 
+
733 #endif // RAYLIB_CPP_INCLUDE_IMAGE_HPP_
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
+
raylib::Image
Image type, bpp always RGBA (32bit)
Definition: Image.hpp:16
+
raylib::Image::ResizeCanvas
Image & ResizeCanvas(int newWidth, int newHeight, int offsetX=0, int offsetY=0, ::Color color={255, 255, 255, 255})
Resize canvas and fill with color.
Definition: Image.hpp:441
+
raylib::Image::Format
Image & Format(int newFormat)
Convert image data to desired format.
Definition: Image.hpp:349
+
raylib::Image::ColorTint
Image & ColorTint(::Color color={255, 255, 255, 255})
Modify image color: tint.
Definition: Image.hpp:498
+
raylib::Image::Dither
Image & Dither(int rBpp, int gBpp, int bBpp, int aBpp)
Dither image data to 16bpp or lower (Floyd-Steinberg dithering)
Definition: Image.hpp:458
+
raylib::Image::FlipVertical
Image & FlipVertical()
Flip image vertically.
Definition: Image.hpp:466
+
raylib::Image::WhiteNoise
::Image WhiteNoise(int width, int height, float factor)
Generate image: white noise.
Definition: Image.hpp:175
+
raylib::Image::ResizeNN
Image & ResizeNN(int newWidth, int newHeight)
Resize and image to new size using Nearest-Neighbor scaling algorithm.
Definition: Image.hpp:433
raylib::Image::GradientH
::Image GradientH(int width, int height, ::Color left, ::Color right)
Generate image: horizontal gradient.
Definition: Image.hpp:152
+
raylib::Image::Crop
Image & Crop(int newWidth, int newHeight)
Crop an image to a new given width and height.
Definition: Image.hpp:397
+
raylib::Image::Crop
Image & Crop(int offsetX, int offsetY, int newWidth, int newHeight)
Crop an image to area defined by a rectangle.
Definition: Image.hpp:411
+
raylib::Image::ColorBrightness
Image & ColorBrightness(int brightness)
Modify image color: brightness.
Definition: Image.hpp:534
+
raylib::Image::ColorGrayscale
Image & ColorGrayscale()
Modify image color: grayscale.
Definition: Image.hpp:514
+
raylib::Image::Crop
Image & Crop(::Vector2 size)
Crop an image to a new given width and height based on a vector.
Definition: Image.hpp:404
+
raylib::Image::Checked
::Image Checked(int width, int height, int checksX, int checksY, ::Color col1={255, 255, 255, 255}, ::Color col2={0, 0, 0, 255})
Generate image: checked.
Definition: Image.hpp:167
+
raylib::Image::Cellular
::Image Cellular(int width, int height, int tileSize)
Generate image: cellular algorithm.
Definition: Image.hpp:182
+
raylib::Image::Image
Image(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load an image from the given file.
Definition: Image.hpp:74
+
raylib::Image::AlphaClear
Image & AlphaClear(::Color color, float threshold)
Clear alpha channel to desired color.
Definition: Image.hpp:365
+
raylib::Image::AlphaMask
Image & AlphaMask(const ::Image &alphaMask)
Apply alpha mask to image.
Definition: Image.hpp:373
+
raylib::Image::Image
Image(const ::Texture2D &texture)
Load an image from the given file.
Definition: Image.hpp:85
+
raylib::Image::GetAlphaBorder
Rectangle GetAlphaBorder(float threshold) const
Get image alpha border rectangle.
Definition: Image.hpp:552
+
raylib::Image::Copy
inline ::Image Copy() const
Create an image duplicate (useful for transformations)
Definition: Image.hpp:327
+
raylib::Image::Load
bool Load(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load image from memory buffer, fileType refers to extension: i.e.
Definition: Image.hpp:266
+
raylib::Image::Image
Image(const std::string &fileName, int width, int height, int format, int headerSize)
Load a raw image from the given file, with the provided width, height, and formats.
Definition: Image.hpp:50
+
raylib::Image::GetPixelDataSize
int GetPixelDataSize() const
Returns the pixel data size based on the current image.
Definition: Image.hpp:708
+
raylib::Image::Crop
Image & Crop(::Rectangle crop)
Crop an image to area defined by a rectangle.
Definition: Image.hpp:389
+
raylib::Image::Export
bool Export(const std::string &fileName) const
Export image data to file, returns true on success.
Definition: Image.hpp:299
+
raylib::Image::GradientV
::Image GradientV(int width, int height, ::Color top, ::Color bottom)
Generate image: vertical gradient.
Definition: Image.hpp:145
+
raylib::Image::AlphaCrop
Image & AlphaCrop(float threshold)
Crop image depending on alpha value.
Definition: Image.hpp:357
+
raylib::Image::IsReady
bool IsReady() const
Retrieve whether or not the Image has been loaded.
Definition: Image.hpp:717
+
raylib::Image::FlipHorizontal
Image & FlipHorizontal()
Flip image horizontally.
Definition: Image.hpp:474
+
raylib::Image::FromImage
inline ::Image FromImage(::Rectangle rec) const
Create an image from another image piece.
Definition: Image.hpp:334
+
raylib::Image::Resize
Image & Resize(int newWidth, int newHeight)
Resize and image to new size.
Definition: Image.hpp:425
+
raylib::Image::Load
bool Load(const std::string &fileName, int width, int height, int format, int headerSize)
Load image from RAW file data.
Definition: Image.hpp:242
+
raylib::Image::DrawPixel
Image & DrawPixel(int posX, int posY, ::Color color={255, 255, 255, 255})
Draw pixel within an image.
Definition: Image.hpp:567
raylib::Image::LoadColors
inline ::Color * LoadColors() const
Load color data from image as a Color array (RGBA - 32bit)
Definition: Image.hpp:655
raylib::Image::Image
Image(const std::string &fileName, int *frames)
Load an animation image from the given file.
Definition: Image.hpp:63
+
raylib::Image::Image
Image(const std::string &fileName)
Load an image from the given file.
Definition: Image.hpp:37
+
raylib::Image::LoadPalette
inline ::Color * LoadPalette(int maxPaletteSize, int *colorsCount) const
Load colors palette from image as a Color array (RGBA - 32bit)
Definition: Image.hpp:662
+
raylib::Image::Load
bool Load(const ::Texture2D &texture)
Load an image from the given file.
Definition: Image.hpp:281
raylib::Image::Color
::Image Color(int width, int height, ::Color color={255, 255, 255, 255})
Generate image: plain color.
Definition: Image.hpp:138
-
raylib::Image::GetSize
inline ::Vector2 GetSize() const
Retrieve the width and height of the image.
Definition: Image.hpp:320
-
raylib::Image::GetPixelDataSize
int GetPixelDataSize() const
Returns the pixel data size based on the current image.
Definition: Image.hpp:708
-
raylib::Image::UnloadColors
void UnloadColors(::Color *colors) const
Unload color data loaded with LoadImageColors()
Definition: Image.hpp:669
-
raylib::Image::AlphaCrop
Image & AlphaCrop(float threshold)
Crop image depending on alpha value.
Definition: Image.hpp:357
-
raylib::Image::Resize
Image & Resize(int newWidth, int newHeight)
Resize and image to new size.
Definition: Image.hpp:425
-
raylib::Image::Checked
::Image Checked(int width, int height, int checksX, int checksY, ::Color col1={255, 255, 255, 255}, ::Color col2={0, 0, 0, 255})
Generate image: checked.
Definition: Image.hpp:167
-
raylib::Image::Image
Image(const ::Texture2D &texture)
Load an image from the given file.
Definition: Image.hpp:85
+
raylib::Image::RotateCCW
Image & RotateCCW()
Rotate image counter-clockwise 90deg.
Definition: Image.hpp:490
+
raylib::Image::LoadTexture
inline ::Texture2D LoadTexture() const
Load texture from image data.
Definition: Image.hpp:683
raylib::Image::GetPixelDataSize
static int GetPixelDataSize(int width, int height, int format=PIXELFORMAT_UNCOMPRESSED_R32G32B32A32)
Get pixel data size in bytes for certain format.
Definition: Image.hpp:699
+
raylib::Image::GradientRadial
::Image GradientRadial(int width, int height, float density, ::Color inner, ::Color outer)
Generate image: radial gradient.
Definition: Image.hpp:159
+
raylib::Image::Mipmaps
Image & Mipmaps()
Generate all mipmap levels for a provided image.
Definition: Image.hpp:450
+
raylib::Image::LoadFromScreen
::Image LoadFromScreen()
Get pixel data from screen buffer and return an Image (screenshot)
Definition: Image.hpp:131
+
raylib::Image::Load
bool Load(const std::string &fileName)
Load image from file into CPU memory (RAM)
Definition: Image.hpp:230
+
raylib::Image::GetSize
inline ::Vector2 GetSize() const
Retrieve the width and height of the image.
Definition: Image.hpp:320
raylib::Image::Unload
void Unload()
Unload image from CPU memory (RAM)
Definition: Image.hpp:289
-
raylib::Image::FlipHorizontal
Image & FlipHorizontal()
Flip image horizontally.
Definition: Image.hpp:474
-
raylib::Image::ResizeNN
Image & ResizeNN(int newWidth, int newHeight)
Resize and image to new size using Nearest-Neighbor scaling algorithm.
Definition: Image.hpp:433
-
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
-
raylib::Image::Cellular
::Image Cellular(int width, int height, int tileSize)
Generate image: cellular algorithm.
Definition: Image.hpp:182
-
raylib::Image::ClearBackground
Image & ClearBackground(::Color color={0, 0, 0, 255})
Clear image background with given color.
Definition: Image.hpp:559
+
raylib::Image::UnloadColors
void UnloadColors(::Color *colors) const
Unload color data loaded with LoadImageColors()
Definition: Image.hpp:669
+
raylib::Image::Load
bool Load(const std::string &fileName, int *frames)
Load image sequence from file (frames appended to image.data).
Definition: Image.hpp:254
+
raylib::Image::AlphaPremultiply
Image & AlphaPremultiply()
Premultiply alpha channel.
Definition: Image.hpp:381
+
raylib::Image::ExportAsCode
bool ExportAsCode(const std::string &fileName) const
Export image as code file defining an array of bytes, returns true on success.
Definition: Image.hpp:307
+
raylib::Image::UnloadPalette
void UnloadPalette(::Color *colors) const
Unload colors palette loaded with LoadImagePalette()
Definition: Image.hpp:676
+
raylib::Image::ToPOT
Image & ToPOT(::Color fillColor)
Convert image to POT (power-of-two)
Definition: Image.hpp:341
raylib::Image::RotateCW
Image & RotateCW()
Rotate image clockwise 90deg.
Definition: Image.hpp:482
-
raylib::Image::AlphaMask
Image & AlphaMask(const ::Image &alphaMask)
Apply alpha mask to image.
Definition: Image.hpp:373
+
raylib::Image::ClearBackground
Image & ClearBackground(::Color color={0, 0, 0, 255})
Clear image background with given color.
Definition: Image.hpp:559
+
raylib::Image::ColorContrast
Image & ColorContrast(float contrast)
Modify image color: contrast.
Definition: Image.hpp:524
+
raylib::Image::ColorInvert
Image & ColorInvert()
Modify image color: invert.
Definition: Image.hpp:506
raylib::Image::ColorReplace
Image & ColorReplace(::Color color, ::Color replace)
Modify image color: replace color.
Definition: Image.hpp:542
-
raylib::Image::Copy
inline ::Image Copy() const
Create an image duplicate (useful for transformations)
Definition: Image.hpp:327
+
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
+
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+
raylib::LoadImage
static inline ::Image LoadImage(const std::string &fileName)
Load an image.
Definition: Functions.hpp:210
+
raylib::LoadImageFromMemory
static inline ::Image LoadImageFromMemory(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load image from memory buffer, fileType refers to extension like "png".
Definition: Functions.hpp:233
+
raylib::LoadImageAnim
static inline ::Image LoadImageAnim(const std::string &fileName, int *frames)
Load animated image data.
Definition: Functions.hpp:226
+
raylib::LoadImageRaw
static inline ::Image LoadImageRaw(const std::string &fileName, int width, int height, int format, int headerSize)
Load an image from RAW file data.
Definition: Functions.hpp:217
+ diff --git a/docs/_material_8hpp_source.html b/docs/_material_8hpp_source.html index e1e084a..1c2f153 100644 --- a/docs/_material_8hpp_source.html +++ b/docs/_material_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Material.hpp Source File @@ -32,10 +32,10 @@ - + @@ -112,8 +112,8 @@ $(function() {
47  return std::vector<Material>(materials, materials + count);
48  }
49 
-
50  GETTERSETTER(::Shader, Shader, shader)
-
51  GETTERSETTER(::MaterialMap*, Maps, maps)
+
50  GETTERSETTER(::Shader, Shader, shader)
+
51  GETTERSETTER(::MaterialMap*, Maps, maps)
52  // TODO(RobLoach): Resolve the Material params being a float[4].
53  // GETTERSETTER(float[4], Params, params)
54 
@@ -171,24 +171,23 @@ $(function() {
118  }
119 };
120 } // namespace raylib
-
121 
-
122 #endif // RAYLIB_CPP_INCLUDE_MATERIAL_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
-
raylib::Material::Load
static std::vector< Material > Load(const std::string &fileName)
Load materials from model file.
Definition: Material.hpp:43
-
raylib::Material::SetTexture
Material & SetTexture(int mapType, const ::Texture2D &texture)
Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
Definition: Material.hpp:89
-
raylib::Material::Material
Material()
Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
Definition: Material.hpp:23
-
raylib::Shader
Shader type (generic)
Definition: Shader.hpp:14
-
raylib::Material::Unload
void Unload()
Unload material from memory.
Definition: Material.hpp:79
-
raylib::Material::DrawMesh
const Material & DrawMesh(const ::Mesh &mesh, ::Matrix *transforms, int instances) const
Draw multiple mesh instances with material and different transforms.
Definition: Material.hpp:105
+
121 using RMaterial = raylib::Material;
+
122 
+
123 #endif // RAYLIB_CPP_INCLUDE_MATERIAL_HPP_
raylib::Material
Material type (generic)
Definition: Material.hpp:14
+
raylib::Material::DrawMesh
const Material & DrawMesh(const ::Mesh &mesh, ::Matrix *transforms, int instances) const
Draw multiple mesh instances with material and different transforms.
Definition: Material.hpp:105
+
raylib::Material::SetTexture
Material & SetTexture(int mapType, const ::Texture2D &texture)
Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
Definition: Material.hpp:89
raylib::Material::DrawMesh
const Material & DrawMesh(const ::Mesh &mesh, ::Matrix transform) const
Draw a 3d mesh with material and transform.
Definition: Material.hpp:97
+
raylib::Material::Unload
void Unload()
Unload material from memory.
Definition: Material.hpp:79
+
raylib::Material::Material
Material()
Load default material (Supports: DIFFUSE, SPECULAR, NORMAL maps)
Definition: Material.hpp:23
+
raylib::Material::Load
static std::vector< Material > Load(const std::string &fileName)
Load materials from model file.
Definition: Material.hpp:43
+
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
+
raylib::Shader
Shader type (generic)
Definition: Shader.hpp:14
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_matrix_8hpp_source.html b/docs/_matrix_8hpp_source.html index 4c8a1d2..ba0420f 100644 --- a/docs/_matrix_8hpp_source.html +++ b/docs/_matrix_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Matrix.hpp Source File @@ -32,10 +32,10 @@ - + @@ -96,22 +96,22 @@ $(function() {
25  float m12 = 0, float m13 = 0, float m14 = 0,
26  float m15 = 0) : ::Matrix{m0, m1, m2, m3, m4, m5, m6, m7, m8, m9, m10, m11, m12, m13, m14, m15} {}
27 
-
28  GETTERSETTER(float, M0, m0)
-
29  GETTERSETTER(float, M1, m1)
-
30  GETTERSETTER(float, M2, m2)
-
31  GETTERSETTER(float, M3, m3)
-
32  GETTERSETTER(float, M4, m4)
-
33  GETTERSETTER(float, M5, m5)
-
34  GETTERSETTER(float, M6, m6)
-
35  GETTERSETTER(float, M7, m7)
-
36  GETTERSETTER(float, M8, m8)
-
37  GETTERSETTER(float, M9, m9)
-
38  GETTERSETTER(float, M10, m10)
-
39  GETTERSETTER(float, M11, m11)
-
40  GETTERSETTER(float, M12, m12)
-
41  GETTERSETTER(float, M13, m13)
-
42  GETTERSETTER(float, M14, m14)
-
43  GETTERSETTER(float, M15, m15)
+
28  GETTERSETTER(float, M0, m0)
+
29  GETTERSETTER(float, M1, m1)
+
30  GETTERSETTER(float, M2, m2)
+
31  GETTERSETTER(float, M3, m3)
+
32  GETTERSETTER(float, M4, m4)
+
33  GETTERSETTER(float, M5, m5)
+
34  GETTERSETTER(float, M6, m6)
+
35  GETTERSETTER(float, M7, m7)
+
36  GETTERSETTER(float, M8, m8)
+
37  GETTERSETTER(float, M9, m9)
+
38  GETTERSETTER(float, M10, m10)
+
39  GETTERSETTER(float, M11, m11)
+
40  GETTERSETTER(float, M12, m12)
+
41  GETTERSETTER(float, M13, m13)
+
42  GETTERSETTER(float, M14, m14)
+
43  GETTERSETTER(float, M15, m15)
44 
45  Matrix& operator=(const ::Matrix& matrix) {
46  set(matrix);
@@ -147,7 +147,6 @@ $(function() {
76  }
77 
78 #ifndef RAYLIB_CPP_NO_MATH
-
79 
82  inline float Trace() const {
83  return ::MatrixTrace(*this);
84  }
@@ -274,21 +273,19 @@ $(function() {
211  }
212 };
213 } // namespace raylib
-
214 
+
214 using RMatrix = raylib::Matrix;
215 
-
216 #endif // RAYLIB_CPP_INCLUDE_MATRIX_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Matrix::Transpose
Matrix Transpose() const
Transposes provided matrix.
Definition: Matrix.hpp:89
+
216 #endif // RAYLIB_CPP_INCLUDE_MATRIX_HPP_
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
raylib::Matrix::SetShaderValue
Matrix & SetShaderValue(::Shader shader, int uniformLoc)
Set shader uniform value (matrix 4x4)
Definition: Matrix.hpp:186
-
raylib::Shader
Shader type (generic)
Definition: Shader.hpp:14
raylib::Matrix::Trace
float Trace() const
Returns the trace of the matrix (sum of the values along the diagonal)
Definition: Matrix.hpp:82
+
raylib::Matrix::Transpose
Matrix Transpose() const
Transposes provided matrix.
Definition: Matrix.hpp:89
+
raylib::Shader
Shader type (generic)
Definition: Shader.hpp:14
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_mesh_8hpp_source.html b/docs/_mesh_8hpp_source.html index bc589c2..6f3f7a5 100644 --- a/docs/_mesh_8hpp_source.html +++ b/docs/_mesh_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Mesh.hpp Source File @@ -32,10 +32,10 @@ - + @@ -114,7 +114,7 @@ $(function() {
46  // return std::vector<Mesh>(meshes, meshes + count);
47  // }
48 
-
49  Mesh(const Mesh&) = delete;
+
49  Mesh(const Mesh&) = delete;
50 
51  Mesh(Mesh&& other) {
52  set(other);
@@ -176,21 +176,21 @@ $(function() {
138  return ::GenMeshCubicmap(cubicmap, cubeSize);
139  }
140 
-
141  GETTERSETTER(int, VertexCount, vertexCount)
-
142  GETTERSETTER(int, TriangleCount, triangleCount)
-
143  GETTERSETTER(float*, Vertices, vertices)
-
144  GETTERSETTER(float *, TexCoords, texcoords)
-
145  GETTERSETTER(float *, TexCoords2, texcoords2)
-
146  GETTERSETTER(float *, Normals, normals)
-
147  GETTERSETTER(float *, Tangents, tangents)
-
148  GETTERSETTER(unsigned char *, Colors, colors)
-
149  GETTERSETTER(unsigned short *, Indices, indices) // NOLINT
-
150  GETTERSETTER(float *, AnimVertices, animVertices)
-
151  GETTERSETTER(float *, AnimNormals, animNormals)
-
152  GETTERSETTER(unsigned char *, BoneIds, boneIds)
-
153  GETTERSETTER(float *, BoneWeights, boneWeights)
-
154  GETTERSETTER(unsigned int, VaoId, vaoId)
-
155  GETTERSETTER(unsigned int *, VboId, vboId)
+
141  GETTERSETTER(int, VertexCount, vertexCount)
+
142  GETTERSETTER(int, TriangleCount, triangleCount)
+
143  GETTERSETTER(float*, Vertices, vertices)
+
144  GETTERSETTER(float *, TexCoords, texcoords)
+
145  GETTERSETTER(float *, TexCoords2, texcoords2)
+
146  GETTERSETTER(float *, Normals, normals)
+
147  GETTERSETTER(float *, Tangents, tangents)
+
148  GETTERSETTER(unsigned char *, Colors, colors)
+
149  GETTERSETTER(unsigned short *, Indices, indices) // NOLINT
+
150  GETTERSETTER(float *, AnimVertices, animVertices)
+
151  GETTERSETTER(float *, AnimNormals, animNormals)
+
152  GETTERSETTER(unsigned char *, BoneIds, boneIds)
+
153  GETTERSETTER(float *, BoneWeights, boneWeights)
+
154  GETTERSETTER(unsigned int, VaoId, vaoId)
+
155  GETTERSETTER(unsigned int *, VboId, vboId)
156 
157  Mesh& operator=(const ::Mesh& mesh) {
158  set(mesh);
@@ -304,40 +304,40 @@ $(function() {
302  }
303 };
304 } // namespace raylib
-
305 
-
306 #endif // RAYLIB_CPP_INCLUDE_MESH_HPP_
- -
raylib::Mesh::Cube
::Mesh Cube(float width, float height, float length)
Generate cuboid mesh.
Definition: Mesh.hpp:88
-
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
-
raylib::Mesh::Export
bool Export(const std::string &fileName)
Export mesh data to file.
Definition: Mesh.hpp:226
-
raylib::Mesh::BoundingBox
raylib::BoundingBox BoundingBox() const
Compute mesh bounding box limits.
Definition: Mesh.hpp:244
-
raylib::Mesh::Poly
::Mesh Poly(int sides, float radius)
Generate polygonal mesh.
Definition: Mesh.hpp:74
-
raylib::Mesh::Torus
::Mesh Torus(float radius, float size, int radSeg, int sides)
Generate torus mesh.
Definition: Mesh.hpp:116
-
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
-
raylib::Mesh::HemiSphere
::Mesh HemiSphere(float radius, int rings, int slices)
Generate half-sphere mesh (no bottom cap)
Definition: Mesh.hpp:102
-
raylib::Mesh::GenTangents
Mesh & GenTangents()
Compute mesh tangents.
Definition: Mesh.hpp:258
-
raylib::Mesh::Upload
void Upload(bool dynamic=false)
Upload mesh vertex data to GPU (VRAM)
Definition: Mesh.hpp:198
-
raylib::Mesh::Unload
void Unload()
Unload mesh from memory (RAM and/or VRAM)
Definition: Mesh.hpp:234
-
raylib::Mesh
Vertex data definning a mesh.
Definition: Mesh.hpp:16
-
raylib::Mesh::Heightmap
::Mesh Heightmap(const ::Image &heightmap, ::Vector3 size)
Generate heightmap mesh from image data.
Definition: Mesh.hpp:130
-
raylib::Mesh::Knot
::Mesh Knot(float radius, float size, int radSeg, int sides)
Generate trefoil knot mesh.
Definition: Mesh.hpp:123
-
raylib::Mesh::Cubicmap
::Mesh Cubicmap(const ::Image &cubicmap, ::Vector3 cubeSize)
Generate cubes-based map mesh from image data.
Definition: Mesh.hpp:137
-
raylib::Mesh::Sphere
::Mesh Sphere(float radius, int rings, int slices)
Generate sphere mesh (standard sphere)
Definition: Mesh.hpp:95
-
raylib::Mesh::GenBinormals
Mesh & GenBinormals()
Compute mesh binormals (aka bitangent)
Definition: Mesh.hpp:266
-
raylib::Model
Model type.
Definition: Model.hpp:15
-
raylib::Mesh::Draw
void Draw(const ::Material &material, ::Matrix *transforms, int instances)
Draw multiple mesh instances with material and different transforms.
Definition: Mesh.hpp:219
-
raylib::Mesh::Cylinder
::Mesh Cylinder(float radius, float height, int slices)
Generate cylinder mesh.
Definition: Mesh.hpp:109
+
305 using RMesh = raylib::Mesh;
+
306 
+
307 #endif // RAYLIB_CPP_INCLUDE_MESH_HPP_
raylib::BoundingBox
Bounding box type.
Definition: BoundingBox.hpp:11
-
raylib::Mesh::LoadModelFrom
raylib::Model LoadModelFrom() const
Load model from generated mesh.
Definition: Mesh.hpp:274
+
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
+
raylib::Mesh
Vertex data definning a mesh.
Definition: Mesh.hpp:16
+
raylib::Mesh::GenBinormals
Mesh & GenBinormals()
Compute mesh binormals (aka bitangent)
Definition: Mesh.hpp:266
+
raylib::Mesh::BoundingBox
raylib::BoundingBox BoundingBox() const
Compute mesh bounding box limits.
Definition: Mesh.hpp:244
+
raylib::Mesh::Mesh
Mesh(const Mesh &)=delete
Load meshes from model file.
raylib::Mesh::Draw
void Draw(const ::Material &material, const ::Matrix &transform)
Draw a 3d mesh with material and transform.
Definition: Mesh.hpp:212
+
raylib::Mesh::LoadModelFrom
raylib::Model LoadModelFrom() const
Load model from generated mesh.
Definition: Mesh.hpp:274
+
raylib::Mesh::Sphere
::Mesh Sphere(float radius, int rings, int slices)
Generate sphere mesh (standard sphere)
Definition: Mesh.hpp:95
+
raylib::Mesh::Knot
::Mesh Knot(float radius, float size, int radSeg, int sides)
Generate trefoil knot mesh.
Definition: Mesh.hpp:123
+
raylib::Mesh::Unload
void Unload()
Unload mesh from memory (RAM and/or VRAM)
Definition: Mesh.hpp:234
+
raylib::Mesh::GenTangents
Mesh & GenTangents()
Compute mesh tangents.
Definition: Mesh.hpp:258
raylib::Mesh::UpdateBuffer
void UpdateBuffer(int index, void *data, int dataSize, int offset=0)
Upload mesh vertex data to GPU (VRAM)
Definition: Mesh.hpp:205
+
raylib::Mesh::Cube
::Mesh Cube(float width, float height, float length)
Generate cuboid mesh.
Definition: Mesh.hpp:88
raylib::Mesh::Plane
::Mesh Plane(float width, float length, int resX, int resZ)
Generate plane mesh (with subdivisions)
Definition: Mesh.hpp:81
+
raylib::Mesh::Poly
::Mesh Poly(int sides, float radius)
Generate polygonal mesh.
Definition: Mesh.hpp:74
+
raylib::Mesh::HemiSphere
::Mesh HemiSphere(float radius, int rings, int slices)
Generate half-sphere mesh (no bottom cap)
Definition: Mesh.hpp:102
+
raylib::Mesh::Torus
::Mesh Torus(float radius, float size, int radSeg, int sides)
Generate torus mesh.
Definition: Mesh.hpp:116
+
raylib::Mesh::Upload
void Upload(bool dynamic=false)
Upload mesh vertex data to GPU (VRAM)
Definition: Mesh.hpp:198
+
raylib::Mesh::Export
bool Export(const std::string &fileName)
Export mesh data to file.
Definition: Mesh.hpp:226
+
raylib::Mesh::Heightmap
::Mesh Heightmap(const ::Image &heightmap, ::Vector3 size)
Generate heightmap mesh from image data.
Definition: Mesh.hpp:130
+
raylib::Mesh::Cylinder
::Mesh Cylinder(float radius, float height, int slices)
Generate cylinder mesh.
Definition: Mesh.hpp:109
+
raylib::Mesh::Cubicmap
::Mesh Cubicmap(const ::Image &cubicmap, ::Vector3 cubeSize)
Generate cubes-based map mesh from image data.
Definition: Mesh.hpp:137
+
raylib::Mesh::Draw
void Draw(const ::Material &material, ::Matrix *transforms, int instances)
Draw multiple mesh instances with material and different transforms.
Definition: Mesh.hpp:219
+
raylib::Model
Model type.
Definition: Model.hpp:15
+
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_model_8hpp_source.html b/docs/_model_8hpp_source.html index 533bc41..cc05d01 100644 --- a/docs/_model_8hpp_source.html +++ b/docs/_model_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Model.hpp Source File @@ -32,10 +32,10 @@ - + @@ -85,212 +85,226 @@ $(function() {
11 namespace raylib {
15 class Model : public ::Model {
16  public:
-
17  Model(const ::Model& model) {
-
18  set(model);
+
17  Model() {
+
18  // Nothing.
19  }
20 
-
21  Model(const std::string& fileName) {
-
22  if (!Load(fileName)) {
-
23  throw RaylibException("Failed to load Model from filename");
-
24  }
-
25  }
-
26 
-
27  Model(const ::Mesh& mesh) {
-
28  if (!Load(mesh)) {
-
29  throw RaylibException("Failed to load Model from Mesh");
-
30  }
-
31  }
-
32 
-
33  ~Model() {
-
34  Unload();
-
35  }
-
36 
-
37  Model(const Model&) = delete;
-
38 
-
39  Model(Model&& other) {
-
40  set(other);
+
21  /*
+
22  * Copy a model from another model.
+
23  */
+
24  Model(const ::Model& model) {
+
25  set(model);
+
26  }
+
27 
+
28  /*
+
29  * Load a model from a file.
+
30  */
+
31  Model(const std::string& fileName) {
+
32  Load(fileName);
+
33  }
+
34 
+
35  /*
+
36  * Load a model from a mesh.
+
37  */
+
38  Model(const ::Mesh& mesh) {
+
39  Load(mesh);
+
40  }
41 
-
42  other.bones = nullptr;
-
43  other.boneCount = 0;
-
44  other.materials = nullptr;
-
45  other.materialCount = 0;
-
46  other.meshes = nullptr;
-
47  other.meshCount = 0;
-
48  other.bindPose = nullptr;
-
49  }
+
42  ~Model() {
+
43  Unload();
+
44  }
+
45 
+
46  Model(const Model&) = delete;
+
47 
+
48  Model(Model&& other) {
+
49  set(other);
50 
-
51  GETTERSETTER(::Matrix, Transform, transform)
-
52  GETTERSETTER(int, MeshCount, meshCount)
-
53  GETTERSETTER(int, MaterialCount, materialCount)
-
54  GETTERSETTER(::Mesh *, Meshes, meshes)
-
55  GETTERSETTER(::Material *, Materials, materials)
-
56  GETTERSETTER(int *, MeshMaterial, meshMaterial)
-
57  GETTERSETTER(int, BoneCount, boneCount)
-
58  GETTERSETTER(::BoneInfo *, Bones, bones)
-
59  GETTERSETTER(::Transform *, BindPoe, bindPose)
-
60 
-
61  Model& operator=(const ::Model& model) {
-
62  set(model);
-
63  return *this;
-
64  }
-
65 
-
66  Model& operator=(const Model&) = delete;
-
67 
-
68  Model& operator=(Model&& other) noexcept {
-
69  if (this == &other) {
-
70  return *this;
-
71  }
-
72 
-
73  Unload();
-
74  set(other);
-
75 
-
76  other.bones = nullptr;
-
77  other.boneCount = 0;
-
78  other.materials = nullptr;
-
79  other.materialCount = 0;
-
80  other.meshes = nullptr;
-
81  other.meshCount = 0;
-
82  other.bindPose = nullptr;
-
83 
-
84  return *this;
-
85  }
-
86 
-
90  inline void Unload() {
-
91  if (meshes != nullptr || materials != nullptr) {
-
92  ::UnloadModel(*this);
-
93  meshes = nullptr;
-
94  materials = nullptr;
-
95  }
-
96  }
-
97 
-
101  inline Model& UnloadKeepMeshes() {
-
102  ::UnloadModelKeepMeshes(*this);
-
103  return *this;
-
104  }
-
105 
-
109  inline Model& SetMeshMaterial(int meshId, int materialId) {
-
110  ::SetModelMeshMaterial(this, meshId, materialId);
-
111  return *this;
-
112  }
-
113 
-
117  inline RayCollision GetCollision(const ::Ray& ray) const {
-
118  return ::GetRayCollisionModel(ray, *this);
-
119  }
-
120 
-
124  inline Model& UpdateAnimation(const ::ModelAnimation& anim, int frame) {
-
125  ::UpdateModelAnimation(*this, anim, frame);
-
126  return *this;
-
127  }
-
128 
-
132  inline bool IsModelAnimationValid(const ::ModelAnimation& anim) const {
-
133  return ::IsModelAnimationValid(*this, anim);
-
134  }
-
135 
-
139  inline Model& Draw(::Vector3 position,
-
140  float scale = 1.0f,
-
141  ::Color tint = {255, 255, 255, 255}) {
-
142  ::DrawModel(*this, position, scale, tint);
-
143  return *this;
-
144  }
-
145 
-
149  inline Model& Draw(
-
150  ::Vector3 position,
-
151  ::Vector3 rotationAxis,
-
152  float rotationAngle = 0.0f,
-
153  ::Vector3 scale = {1.0f, 1.0f, 1.0f},
-
154  ::Color tint = {255, 255, 255, 255}) {
-
155  ::DrawModelEx(*this, position, rotationAxis, rotationAngle, scale, tint);
-
156  return *this;
-
157  }
-
158 
-
162  inline Model& DrawWires(::Vector3 position,
-
163  float scale = 1.0f,
-
164  ::Color tint = {255, 255, 255, 255}) {
-
165  ::DrawModelWires(*this, position, scale, tint);
-
166  return *this;
-
167  }
-
168 
-
172  inline Model& DrawWires(
-
173  ::Vector3 position,
-
174  ::Vector3 rotationAxis,
-
175  float rotationAngle = 0.0f,
-
176  ::Vector3 scale = {1.0f, 1.0f, 1.0f},
-
177  ::Color tint = {255, 255, 255, 255}) {
-
178  ::DrawModelWiresEx(*this, position, rotationAxis, rotationAngle, scale, tint);
-
179  return *this;
-
180  }
-
181 
-
185  inline BoundingBox GetBoundingBox() const {
-
186  return ::GetModelBoundingBox(*this);
-
187  }
-
188 
-
192  operator BoundingBox() const {
-
193  return ::GetModelBoundingBox(*this);
-
194  }
-
195 
-
199  bool IsReady() const {
-
200  return meshCount > 0 || materialCount > 0 || boneCount > 0;
-
201  }
-
202 
-
208  bool Load(const std::string& fileName) {
-
209  set(::LoadModel(fileName.c_str()));
-
210  return IsReady();
-
211  }
-
212 
-
218  bool Load(const ::Mesh& mesh) {
-
219  set(::LoadModelFromMesh(mesh));
-
220  return IsReady();
-
221  }
-
222 
-
223  private:
-
224  void set(const ::Model& model) {
-
225  transform = model.transform;
-
226 
-
227  meshCount = model.meshCount;
-
228  materialCount = model.materialCount;
-
229  meshes = model.meshes;
-
230  materials = model.materials;
-
231  meshMaterial = model.meshMaterial;
-
232 
-
233  boneCount = model.boneCount;
-
234  bones = model.bones;
-
235  bindPose = model.bindPose;
+
51  other.materials = nullptr;
+
52  other.materialCount = 0;
+
53  other.meshes = nullptr;
+
54  other.meshCount = 0;
+
55  other.bones = nullptr;
+
56  other.boneCount = 0;
+
57  other.bindPose = nullptr;
+
58  }
+
59 
+
60  GETTERSETTER(::Matrix, Transform, transform)
+
61  GETTERSETTER(int, MeshCount, meshCount)
+
62  GETTERSETTER(int, MaterialCount, materialCount)
+
63  GETTERSETTER(::Mesh*, Meshes, meshes)
+
64  GETTERSETTER(::Material*, Materials, materials)
+
65  GETTERSETTER(int*, MeshMaterial, meshMaterial)
+
66  GETTERSETTER(int, BoneCount, boneCount)
+
67  GETTERSETTER(::BoneInfo*, Bones, bones)
+
68  GETTERSETTER(::Transform*, BindPose, bindPose)
+
69 
+
70  Model& operator=(const ::Model& model) {
+
71  set(model);
+
72  return *this;
+
73  }
+
74 
+
75  Model& operator=(const Model&) = delete;
+
76 
+
77  Model& operator=(Model&& other) noexcept {
+
78  if (this == &other) {
+
79  return *this;
+
80  }
+
81 
+
82  Unload();
+
83  set(other);
+
84 
+
85  other.bones = nullptr;
+
86  other.boneCount = 0;
+
87  other.materials = nullptr;
+
88  other.materialCount = 0;
+
89  other.meshes = nullptr;
+
90  other.meshCount = 0;
+
91  other.bindPose = nullptr;
+
92 
+
93  return *this;
+
94  }
+
95 
+
99  inline void Unload() {
+
100  if (meshes != nullptr || materials != nullptr) {
+
101  ::UnloadModel(*this);
+
102  meshes = nullptr;
+
103  materials = nullptr;
+
104  }
+
105  }
+
106 
+
110  inline Model& UnloadKeepMeshes() {
+
111  ::UnloadModelKeepMeshes(*this);
+
112  return *this;
+
113  }
+
114 
+
118  inline Model& SetMeshMaterial(int meshId, int materialId) {
+
119  ::SetModelMeshMaterial(this, meshId, materialId);
+
120  return *this;
+
121  }
+
122 
+
126  inline RayCollision GetCollision(const ::Ray& ray) const {
+
127  return ::GetRayCollisionModel(ray, *this);
+
128  }
+
129 
+
133  inline Model& UpdateAnimation(const ::ModelAnimation& anim, int frame) {
+
134  ::UpdateModelAnimation(*this, anim, frame);
+
135  return *this;
+
136  }
+
137 
+
141  inline bool IsModelAnimationValid(const ::ModelAnimation& anim) const {
+
142  return ::IsModelAnimationValid(*this, anim);
+
143  }
+
144 
+
148  inline Model& Draw(::Vector3 position,
+
149  float scale = 1.0f,
+
150  ::Color tint = {255, 255, 255, 255}) {
+
151  ::DrawModel(*this, position, scale, tint);
+
152  return *this;
+
153  }
+
154 
+
158  inline Model& Draw(
+
159  ::Vector3 position,
+
160  ::Vector3 rotationAxis,
+
161  float rotationAngle = 0.0f,
+
162  ::Vector3 scale = {1.0f, 1.0f, 1.0f},
+
163  ::Color tint = {255, 255, 255, 255}) {
+
164  ::DrawModelEx(*this, position, rotationAxis, rotationAngle, scale, tint);
+
165  return *this;
+
166  }
+
167 
+
171  inline Model& DrawWires(::Vector3 position,
+
172  float scale = 1.0f,
+
173  ::Color tint = {255, 255, 255, 255}) {
+
174  ::DrawModelWires(*this, position, scale, tint);
+
175  return *this;
+
176  }
+
177 
+
181  inline Model& DrawWires(
+
182  ::Vector3 position,
+
183  ::Vector3 rotationAxis,
+
184  float rotationAngle = 0.0f,
+
185  ::Vector3 scale = {1.0f, 1.0f, 1.0f},
+
186  ::Color tint = {255, 255, 255, 255}) {
+
187  ::DrawModelWiresEx(*this, position, rotationAxis, rotationAngle, scale, tint);
+
188  return *this;
+
189  }
+
190 
+
194  inline BoundingBox GetBoundingBox() const {
+
195  return ::GetModelBoundingBox(*this);
+
196  }
+
197 
+
201  operator BoundingBox() const {
+
202  return ::GetModelBoundingBox(*this);
+
203  }
+
204 
+
208  bool IsReady() const {
+
209  return meshCount > 0 || materialCount > 0 || boneCount > 0;
+
210  }
+
211 
+
217  bool Load(const std::string& fileName) {
+
218  set(::LoadModel(fileName.c_str()));
+
219  if (!IsReady()) {
+
220  throw RaylibException("Failed to load Model from " + fileName);
+
221  }
+
222  return IsReady();
+
223  }
+
224 
+
230  bool Load(const ::Mesh& mesh) {
+
231  set(::LoadModelFromMesh(mesh));
+
232  if (!IsReady()) {
+
233  throw RaylibException("Failed to load Model from Mesh");
+
234  }
+
235  return IsReady();
236  }
-
237 };
-
238 
-
239 } // namespace raylib
-
240 
-
241 #endif // RAYLIB_CPP_INCLUDE_MODEL_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
-
raylib::Model::DrawWires
Model & DrawWires(::Vector3 position, float scale=1.0f, ::Color tint={255, 255, 255, 255})
Draw a model wires (with texture if set)
Definition: Model.hpp:162
-
raylib::Model::DrawWires
Model & DrawWires(::Vector3 position, ::Vector3 rotationAxis, float rotationAngle=0.0f, ::Vector3 scale={1.0f, 1.0f, 1.0f}, ::Color tint={255, 255, 255, 255})
Draw a model wires (with texture if set) with extended parameters.
Definition: Model.hpp:172
-
raylib::Model::SetMeshMaterial
Model & SetMeshMaterial(int meshId, int materialId)
Set material for a mesh.
Definition: Model.hpp:109
-
raylib::Model::Draw
Model & Draw(::Vector3 position, float scale=1.0f, ::Color tint={255, 255, 255, 255})
Draw a model (with texture if set)
Definition: Model.hpp:139
-
raylib::RayCollision
Raycast hit information.
Definition: RayCollision.hpp:11
-
raylib::Model::Draw
Model & Draw(::Vector3 position, ::Vector3 rotationAxis, float rotationAngle=0.0f, ::Vector3 scale={1.0f, 1.0f, 1.0f}, ::Color tint={255, 255, 255, 255})
Draw a model with extended parameters.
Definition: Model.hpp:149
-
raylib::Model::IsModelAnimationValid
bool IsModelAnimationValid(const ::ModelAnimation &anim) const
Check model animation skeleton match.
Definition: Model.hpp:132
-
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
-
raylib::Model::UpdateAnimation
Model & UpdateAnimation(const ::ModelAnimation &anim, int frame)
Update model animation pose.
Definition: Model.hpp:124
-
raylib::Model::IsReady
bool IsReady() const
Determines whether or not the Model has data in it.
Definition: Model.hpp:199
-
raylib::Model::Load
bool Load(const ::Mesh &mesh)
Loads a Model from the given Mesh.
Definition: Model.hpp:218
-
raylib::Mesh
Vertex data definning a mesh.
Definition: Mesh.hpp:16
-
raylib::Model::Load
bool Load(const std::string &fileName)
Loads a Model from the given file.
Definition: Model.hpp:208
-
raylib::Model::GetBoundingBox
BoundingBox GetBoundingBox() const
Compute model bounding box limits (considers all meshes)
Definition: Model.hpp:185
-
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
-
raylib::Model
Model type.
Definition: Model.hpp:15
-
raylib::Model::GetCollision
RayCollision GetCollision(const ::Ray &ray) const
Get collision info between ray and model.
Definition: Model.hpp:117
+
237 
+
238  private:
+
239  void set(const ::Model& model) {
+
240  transform = model.transform;
+
241 
+
242  meshCount = model.meshCount;
+
243  materialCount = model.materialCount;
+
244  meshes = model.meshes;
+
245  materials = model.materials;
+
246  meshMaterial = model.meshMaterial;
+
247 
+
248  boneCount = model.boneCount;
+
249  bones = model.bones;
+
250  bindPose = model.bindPose;
+
251  }
+
252 };
+
253 
+
254 } // namespace raylib
+
255 using RModel = raylib::Model;
+
256 
+
257 #endif // RAYLIB_CPP_INCLUDE_MODEL_HPP_
raylib::BoundingBox
Bounding box type.
Definition: BoundingBox.hpp:11
-
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
raylib::Material
Material type (generic)
Definition: Material.hpp:14
-
raylib::Model::Unload
void Unload()
Unload model (including meshes) from memory (RAM and/or VRAM)
Definition: Model.hpp:90
-
raylib::Model::UnloadKeepMeshes
Model & UnloadKeepMeshes()
Unload model (but not meshes) from memory (RAM and/or VRAM)
Definition: Model.hpp:101
+
raylib::Matrix
Matrix type (OpenGL style 4x4 - right handed, column major)
Definition: Matrix.hpp:16
+
raylib::Mesh
Vertex data definning a mesh.
Definition: Mesh.hpp:16
+
raylib::Model
Model type.
Definition: Model.hpp:15
+
raylib::Model::IsReady
bool IsReady() const
Determines whether or not the Model has data in it.
Definition: Model.hpp:208
+
raylib::Model::DrawWires
Model & DrawWires(::Vector3 position, float scale=1.0f, ::Color tint={255, 255, 255, 255})
Draw a model wires (with texture if set)
Definition: Model.hpp:171
+
raylib::Model::Draw
Model & Draw(::Vector3 position, ::Vector3 rotationAxis, float rotationAngle=0.0f, ::Vector3 scale={1.0f, 1.0f, 1.0f}, ::Color tint={255, 255, 255, 255})
Draw a model with extended parameters.
Definition: Model.hpp:158
+
raylib::Model::UnloadKeepMeshes
Model & UnloadKeepMeshes()
Unload model (but not meshes) from memory (RAM and/or VRAM)
Definition: Model.hpp:110
+
raylib::Model::Unload
void Unload()
Unload model (including meshes) from memory (RAM and/or VRAM)
Definition: Model.hpp:99
+
raylib::Model::IsModelAnimationValid
bool IsModelAnimationValid(const ::ModelAnimation &anim) const
Check model animation skeleton match.
Definition: Model.hpp:141
+
raylib::Model::UpdateAnimation
Model & UpdateAnimation(const ::ModelAnimation &anim, int frame)
Update model animation pose.
Definition: Model.hpp:133
+
raylib::Model::DrawWires
Model & DrawWires(::Vector3 position, ::Vector3 rotationAxis, float rotationAngle=0.0f, ::Vector3 scale={1.0f, 1.0f, 1.0f}, ::Color tint={255, 255, 255, 255})
Draw a model wires (with texture if set) with extended parameters.
Definition: Model.hpp:181
+
raylib::Model::Draw
Model & Draw(::Vector3 position, float scale=1.0f, ::Color tint={255, 255, 255, 255})
Draw a model (with texture if set)
Definition: Model.hpp:148
+
raylib::Model::Load
bool Load(const ::Mesh &mesh)
Loads a Model from the given Mesh.
Definition: Model.hpp:230
+
raylib::Model::Load
bool Load(const std::string &fileName)
Loads a Model from the given file.
Definition: Model.hpp:217
+
raylib::Model::SetMeshMaterial
Model & SetMeshMaterial(int meshId, int materialId)
Set material for a mesh.
Definition: Model.hpp:118
+
raylib::Model::GetCollision
RayCollision GetCollision(const ::Ray &ray) const
Get collision info between ray and model.
Definition: Model.hpp:126
+
raylib::Model::GetBoundingBox
BoundingBox GetBoundingBox() const
Compute model bounding box limits (considers all meshes)
Definition: Model.hpp:194
+
raylib::RayCollision
Raycast hit information.
Definition: RayCollision.hpp:11
+
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_model_animation_8hpp_source.html b/docs/_model_animation_8hpp_source.html index 5f950d7..44e1e44 100644 --- a/docs/_model_animation_8hpp_source.html +++ b/docs/_model_animation_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: ModelAnimation.hpp Source File @@ -32,10 +32,10 @@ - + @@ -114,10 +114,10 @@ $(function() {
46  return mats;
47  }
48 
-
49  GETTERSETTER(int, BoneCount, boneCount)
-
50  GETTERSETTER(::BoneInfo*, Bones, bones)
-
51  GETTERSETTER(int, FrameCount, frameCount)
-
52  GETTERSETTER(::Transform**, FramePoses, framePoses)
+
49  GETTERSETTER(int, BoneCount, boneCount)
+
50  GETTERSETTER(::BoneInfo*, Bones, bones)
+
51  GETTERSETTER(int, FrameCount, frameCount)
+
52  GETTERSETTER(::Transform**, FramePoses, framePoses)
53 
54  ModelAnimation& operator=(const ::ModelAnimation& model) {
55  set(model);
@@ -164,20 +164,19 @@ $(function() {
105  }
106 };
107 } // namespace raylib
-
108 
-
109 #endif // RAYLIB_CPP_INCLUDE_MODELANIMATION_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+
108 using RModelAnimation = raylib::ModelAnimation;
+
109 
+
110 #endif // RAYLIB_CPP_INCLUDE_MODELANIMATION_HPP_
+
raylib::ModelAnimation
Model animation.
Definition: ModelAnimation.hpp:15
+
raylib::ModelAnimation::IsValid
bool IsValid(const ::Model &model) const
Check model animation skeleton match.
Definition: ModelAnimation.hpp:95
raylib::ModelAnimation::Update
ModelAnimation & Update(const ::Model &model, int frame)
Update model animation pose.
Definition: ModelAnimation.hpp:87
raylib::ModelAnimation::Load
static std::vector< ModelAnimation > Load(const std::string &fileName)
Load model animations from file.
Definition: ModelAnimation.hpp:39
raylib::ModelAnimation::Unload
void Unload()
Unload animation data.
Definition: ModelAnimation.hpp:80
-
raylib::ModelAnimation::IsValid
bool IsValid(const ::Model &model) const
Check model animation skeleton match.
Definition: ModelAnimation.hpp:95
-
raylib::ModelAnimation
Model animation.
Definition: ModelAnimation.hpp:15
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_mouse_8hpp_source.html b/docs/_mouse_8hpp_source.html index ab73977..4d0b0bd 100644 --- a/docs/_mouse_8hpp_source.html +++ b/docs/_mouse_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Mouse.hpp Source File @@ -32,10 +32,10 @@ - + @@ -162,24 +162,23 @@ $(function() {
114  }
115 };
116 } // namespace raylib
-
117 
-
118 #endif // RAYLIB_CPP_INCLUDE_MOUSE_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+
117 using RMouse = raylib::Mouse;
+
118 
+
119 #endif // RAYLIB_CPP_INCLUDE_MOUSE_HPP_
raylib::Mouse
Input-related functions: mouse.
Definition: Mouse.hpp:11
+
raylib::Mouse::GetTouchX
static int GetTouchX()
Get touch position X for touch point 0 (relative to screen size)
Definition: Mouse.hpp:98
raylib::Mouse::IsButtonDown
static bool IsButtonDown(int button)
Detect if a mouse button is being pressed.
Definition: Mouse.hpp:23
-
raylib::Mouse::IsButtonPressed
static bool IsButtonPressed(int button)
Detect if a mouse button has been pressed once.
Definition: Mouse.hpp:16
+
raylib::Mouse::GetTouchY
static int GetTouchY()
Get touch position Y for touch point 0 (relative to screen size)
Definition: Mouse.hpp:105
raylib::Mouse::GetTouchPosition
static Vector2 GetTouchPosition(int index)
Get touch position XY for a touch point index (relative to screen size)
Definition: Mouse.hpp:112
raylib::Mouse::SetCursor
static void SetCursor(int cursor=MOUSE_CURSOR_DEFAULT)
Sets the current mouse cursor icon.
Definition: Mouse.hpp:91
-
raylib::Mouse::GetTouchX
static int GetTouchX()
Get touch position X for touch point 0 (relative to screen size)
Definition: Mouse.hpp:98
-
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
-
raylib::Mouse::GetTouchY
static int GetTouchY()
Get touch position Y for touch point 0 (relative to screen size)
Definition: Mouse.hpp:105
raylib::Mouse::IsButtonReleased
static bool IsButtonReleased(int button)
Detect if a mouse button has been released once.
Definition: Mouse.hpp:30
+
raylib::Mouse::IsButtonPressed
static bool IsButtonPressed(int button)
Detect if a mouse button has been pressed once.
Definition: Mouse.hpp:16
+
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_music_8hpp_source.html b/docs/_music_8hpp_source.html index ef1db51..690bc91 100644 --- a/docs/_music_8hpp_source.html +++ b/docs/_music_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Music.hpp Source File @@ -32,10 +32,10 @@ - + @@ -124,11 +124,11 @@ $(function() {
69  Unload();
70  }
71 
-
72  GETTERSETTER(::AudioStream, Stream, stream)
-
73  GETTERSETTER(unsigned int, FrameCount, frameCount)
-
74  GETTERSETTER(bool, Looping, looping)
-
75  GETTERSETTER(int, CtxType, ctxType)
-
76  GETTERSETTER(void*, CtxData, ctxData)
+
72  GETTERSETTER(::AudioStream, Stream, stream)
+
73  GETTERSETTER(unsigned int, FrameCount, frameCount)
+
74  GETTERSETTER(bool, Looping, looping)
+
75  GETTERSETTER(int, CtxType, ctxType)
+
76  GETTERSETTER(void*, CtxData, ctxData)
77 
78  Music& operator=(const ::Music& music) {
79  set(music);
@@ -234,37 +234,36 @@ $(function() {
226  }
227 };
228 } // namespace raylib
-
229 
-
230 #endif // RAYLIB_CPP_INCLUDE_MUSIC_HPP_
- -
raylib::Music::Music
Music(const std::string &fileType, unsigned char *data, int dataSize)
Load music stream from memory.
Definition: Music.hpp:47
-
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Music::SetPitch
Music & SetPitch(float pitch)
Set pitch for music.
Definition: Music.hpp:175
-
raylib::Music::Stop
Music & Stop()
Stop music playing.
Definition: Music.hpp:128
-
raylib::Music::SetVolume
Music & SetVolume(float volume)
Set volume for music.
Definition: Music.hpp:167
-
raylib::Music::Resume
Music & Resume()
Resume music playing.
Definition: Music.hpp:144
-
raylib::Music::Play
Music & Play()
Start music playing.
Definition: Music.hpp:112
-
raylib::Music::Pause
Music & Pause()
Pause music playing.
Definition: Music.hpp:136
-
raylib::Music::IsPlaying
bool IsPlaying() const
Check if music is playing.
Definition: Music.hpp:160
-
raylib::Music::IsReady
bool IsReady() const
Retrieve whether or not the Music has been loaded.
Definition: Music.hpp:215
-
raylib::Music::~Music
~Music()
Unload music stream.
Definition: Music.hpp:68
-
raylib::Music::Music
Music(const std::string &fileName)
Load music stream from file.
Definition: Music.hpp:36
-
raylib::Music::Unload
void Unload()
Unload music stream.
Definition: Music.hpp:105
-
raylib::Music::Load
bool Load(const std::string &fileType, unsigned char *data, int dataSize)
Load music stream from memory.
Definition: Music.hpp:205
-
raylib::Music::Music
Music()
Default Music constructor to build an empty Music object.
Definition: Music.hpp:19
-
raylib::Music
Music stream type (audio file streaming from memory)
Definition: Music.hpp:14
-
raylib::Music::Load
bool Load(const std::string &fileName)
Load music stream from file.
Definition: Music.hpp:197
-
raylib::Music::Seek
Music & Seek(float position)
Seek music to a position (in seconds)
Definition: Music.hpp:152
+
229 using RMusic = raylib::Music;
+
230 
+
231 #endif // RAYLIB_CPP_INCLUDE_MUSIC_HPP_
raylib::AudioStream
AudioStream management functions.
Definition: AudioStream.hpp:12
-
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib::Music
Music stream type (audio file streaming from memory)
Definition: Music.hpp:14
+
raylib::Music::IsPlaying
bool IsPlaying() const
Check if music is playing.
Definition: Music.hpp:160
raylib::Music::Update
Music & Update()
Updates buffers for music streaming.
Definition: Music.hpp:120
-
raylib::Music::GetTimeLength
float GetTimeLength() const
Get music time length (in seconds)
Definition: Music.hpp:183
+
raylib::Music::Load
bool Load(const std::string &fileType, unsigned char *data, int dataSize)
Load music stream from memory.
Definition: Music.hpp:205
+
raylib::Music::Music
Music(const std::string &fileName)
Load music stream from file.
Definition: Music.hpp:36
+
raylib::Music::IsReady
bool IsReady() const
Retrieve whether or not the Music has been loaded.
Definition: Music.hpp:215
raylib::Music::GetTimePlayed
float GetTimePlayed() const
Get current music time played (in seconds)
Definition: Music.hpp:190
+
raylib::Music::Resume
Music & Resume()
Resume music playing.
Definition: Music.hpp:144
+
raylib::Music::Stop
Music & Stop()
Stop music playing.
Definition: Music.hpp:128
+
raylib::Music::~Music
~Music()
Unload music stream.
Definition: Music.hpp:68
+
raylib::Music::Pause
Music & Pause()
Pause music playing.
Definition: Music.hpp:136
+
raylib::Music::SetPitch
Music & SetPitch(float pitch)
Set pitch for music.
Definition: Music.hpp:175
+
raylib::Music::Music
Music(const std::string &fileType, unsigned char *data, int dataSize)
Load music stream from memory.
Definition: Music.hpp:47
+
raylib::Music::Play
Music & Play()
Start music playing.
Definition: Music.hpp:112
+
raylib::Music::Seek
Music & Seek(float position)
Seek music to a position (in seconds)
Definition: Music.hpp:152
+
raylib::Music::SetVolume
Music & SetVolume(float volume)
Set volume for music.
Definition: Music.hpp:167
+
raylib::Music::Load
bool Load(const std::string &fileName)
Load music stream from file.
Definition: Music.hpp:197
+
raylib::Music::GetTimeLength
float GetTimeLength() const
Get music time length (in seconds)
Definition: Music.hpp:183
+
raylib::Music::Unload
void Unload()
Unload music stream.
Definition: Music.hpp:105
+
raylib::Music::Music
Music()
Default Music constructor to build an empty Music object.
Definition: Music.hpp:19
+
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_physics_8hpp_source.html b/docs/_physics_8hpp_source.html index 8632486..4a8da16 100644 --- a/docs/_physics_8hpp_source.html +++ b/docs/_physics_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Physics.hpp Source File @@ -32,10 +32,10 @@ - + @@ -188,17 +188,16 @@ $(function() {
117  }
118 };
119 } // namespace raylib
-
120 
-
121 #endif // RAYLIB_CPP_INCLUDE_PHYSICS_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+
120 using RPhysics = raylib::Physics;
+
121 
+
122 #endif // RAYLIB_CPP_INCLUDE_PHYSICS_HPP_
raylib::Physics
2D Physics library for videogames
Definition: Physics.hpp:12
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_ray_8hpp_source.html b/docs/_ray_8hpp_source.html index a44b770..3fde58f 100644 --- a/docs/_ray_8hpp_source.html +++ b/docs/_ray_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Ray.hpp Source File @@ -32,10 +32,10 @@ - + @@ -99,8 +99,8 @@ $(function() {
28  return *this;
29  }
30 
-
31  GETTERSETTER(::Vector3, Position, position)
-
32  GETTERSETTER(::Vector3, Direction, direction)
+
31  GETTERSETTER(::Vector3, Position, position)
+
32  GETTERSETTER(::Vector3, Direction, direction)
33 
37  inline Ray& Draw(::Color color) {
38  DrawRay(*this, color);
@@ -142,29 +142,28 @@ $(function() {
95  }
96 };
97 } // namespace raylib
-
98 
-
99 #endif // RAYLIB_CPP_INCLUDE_RAY_HPP_
- -
raylib::Ray::Draw
Ray & Draw(::Color color)
Draw a ray line.
Definition: Ray.hpp:37
-
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Ray::CheckCollision
bool CheckCollision(const ::BoundingBox &box) const
Detect collision between ray and box.
Definition: Ray.hpp:59
-
raylib::Ray
Ray type (useful for raycast)
Definition: Ray.hpp:12
-
raylib::Ray::CheckCollisionSphere
bool CheckCollisionSphere(::Vector3 center, float radius) const
Detect collision between ray and sphere.
Definition: Ray.hpp:45
-
raylib::Ray::GetCollision
RayCollision GetCollision(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) const
Get collision info between ray and quad.
Definition: Ray.hpp:87
+
98 using RRay = raylib::Ray;
+
99 
+
100 #endif // RAYLIB_CPP_INCLUDE_RAY_HPP_
+
raylib::Camera3D
Camera type, defines a camera position/orientation in 3d space.
Definition: Camera3D.hpp:12
+
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
raylib::RayCollision
Raycast hit information.
Definition: RayCollision.hpp:11
+
raylib::Ray
Ray type (useful for raycast)
Definition: Ray.hpp:12
+
raylib::Ray::GetCollision
RayCollision GetCollision(const ::Model &model) const
Get collision info between ray and model.
Definition: Ray.hpp:66
+
raylib::Ray::CheckCollisionSphere
bool CheckCollisionSphere(::Vector3 center, float radius) const
Detect collision between ray and sphere.
Definition: Ray.hpp:45
+
raylib::Ray::GetCollision
RayCollision GetCollision(::Vector3 center, float radius) const
Get collision information between ray and sphere.
Definition: Ray.hpp:52
+
raylib::Ray::Draw
Ray & Draw(::Color color)
Draw a ray line.
Definition: Ray.hpp:37
raylib::Ray::GetCollision
RayCollision GetCollision(::Vector3 p1, ::Vector3 p2, ::Vector3 p3) const
Get collision info between ray and triangle.
Definition: Ray.hpp:80
raylib::Ray::GetCollision
RayCollision GetCollision(const ::Mesh &mesh, const ::Matrix &transform) const
Get collision information between ray and mesh.
Definition: Ray.hpp:73
-
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
-
raylib::Ray::GetCollision
RayCollision GetCollision(::Vector3 center, float radius) const
Get collision information between ray and sphere.
Definition: Ray.hpp:52
-
raylib::Camera3D
Camera type, defines a camera position/orientation in 3d space.
Definition: Camera3D.hpp:12
+
raylib::Ray::CheckCollision
bool CheckCollision(const ::BoundingBox &box) const
Detect collision between ray and box.
Definition: Ray.hpp:59
+
raylib::Ray::GetCollision
RayCollision GetCollision(Vector3 p1, Vector3 p2, Vector3 p3, Vector3 p4) const
Get collision info between ray and quad.
Definition: Ray.hpp:87
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
-
raylib::Ray::GetCollision
RayCollision GetCollision(const ::Model &model) const
Get collision info between ray and model.
Definition: Ray.hpp:66
-
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
+
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_ray_collision_8hpp_source.html b/docs/_ray_collision_8hpp_source.html index cf4a7ff..aa4fc1e 100644 --- a/docs/_ray_collision_8hpp_source.html +++ b/docs/_ray_collision_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: RayCollision.hpp Source File @@ -32,10 +32,10 @@ - + @@ -119,10 +119,10 @@ $(function() {
66  return *this;
67  }
68 
-
69  GETTERSETTER(bool, Hit, hit)
-
70  GETTERSETTER(float, Distance, distance)
-
71  GETTERSETTER(::Vector3, Position, point)
-
72  GETTERSETTER(::Vector3, Normal, normal)
+
69  GETTERSETTER(bool, Hit, hit)
+
70  GETTERSETTER(float, Distance, distance)
+
71  GETTERSETTER(::Vector3, Position, point)
+
72  GETTERSETTER(::Vector3, Normal, normal)
73 
74  private:
75  void set(const ::RayCollision& ray) {
@@ -133,23 +133,22 @@ $(function() {
80  }
81 };
82 } // namespace raylib
-
83 
-
84 #endif // RAYLIB_CPP_INCLUDE_RAYCOLLISION_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, ::Vector3 center, float radius)
Get collision info between ray and sphere.
Definition: RayCollision.hpp:53
+
83 using RRayCollision = raylib::RayCollision;
+
84 
+
85 #endif // RAYLIB_CPP_INCLUDE_RAYCOLLISION_HPP_
raylib::RayCollision
Raycast hit information.
Definition: RayCollision.hpp:11
-
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
-
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, ::Vector3 p1, ::Vector3 p2, ::Vector3 p3, ::Vector3 p4)
Get collision info between ray and quad.
Definition: RayCollision.hpp:46
-
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, const ::BoundingBox &box)
Get collision info between ray and bounding box.
Definition: RayCollision.hpp:25
-
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, ::Vector3 p1, ::Vector3 p2, ::Vector3 p3)
Get collision info between ray and triangle.
Definition: RayCollision.hpp:60
-
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, const ::Model &model)
Get collision info between ray and model.
Definition: RayCollision.hpp:39
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, const ::Mesh &mesh, const ::Matrix &transform)
Get collision info between ray and mesh.
Definition: RayCollision.hpp:32
+
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, ::Vector3 p1, ::Vector3 p2, ::Vector3 p3)
Get collision info between ray and triangle.
Definition: RayCollision.hpp:60
+
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, const ::BoundingBox &box)
Get collision info between ray and bounding box.
Definition: RayCollision.hpp:25
+
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, ::Vector3 p1, ::Vector3 p2, ::Vector3 p3, ::Vector3 p4)
Get collision info between ray and quad.
Definition: RayCollision.hpp:46
+
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, const ::Model &model)
Get collision info between ray and model.
Definition: RayCollision.hpp:39
+
raylib::RayCollision::RayCollision
RayCollision(const ::Ray &ray, ::Vector3 center, float radius)
Get collision info between ray and sphere.
Definition: RayCollision.hpp:53
+
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_raylib_exception_8hpp_source.html b/docs/_raylib_exception_8hpp_source.html index f78f34d..095acc7 100644 --- a/docs/_raylib_exception_8hpp_source.html +++ b/docs/_raylib_exception_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: RaylibException.hpp Source File @@ -32,10 +32,10 @@ - + @@ -93,18 +93,17 @@ $(function() {
32 };
33 
34 } // namespace raylib
-
35 
-
36 #endif // RAYLIB_CPP_INCLUDE_RAYLIBEXCEPTION_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::RaylibException::RaylibException
RaylibException(std::string message)
Construct a runtime exception with the given message.
Definition: RaylibException.hpp:20
+
35 using RRaylibException = raylib::RaylibException;
+
36 
+
37 #endif // RAYLIB_CPP_INCLUDE_RAYLIBEXCEPTION_HPP_
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib::RaylibException::RaylibException
RaylibException(std::string message)
Construct a runtime exception with the given message.
Definition: RaylibException.hpp:20
raylib::RaylibException::TraceLog
void TraceLog(int logLevel=LOG_ERROR)
Outputs the exception message to TraceLog().
Definition: RaylibException.hpp:29
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_rectangle_8hpp_source.html b/docs/_rectangle_8hpp_source.html index 9a2899f..72ca113 100644 --- a/docs/_rectangle_8hpp_source.html +++ b/docs/_rectangle_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Rectangle.hpp Source File @@ -32,10 +32,10 @@ - + @@ -97,10 +97,10 @@ $(function() {
26  Rectangle(::Vector2 size) : ::Rectangle{0, 0, size.x, size.y} {}
27  Rectangle(::Vector4 rect) : ::Rectangle{rect.x, rect.y, rect.z, rect.w} {}
28 
-
29  GETTERSETTER(float, X, x)
-
30  GETTERSETTER(float, Y, y)
-
31  GETTERSETTER(float, Width, width)
-
32  GETTERSETTER(float, Height, height)
+
29  GETTERSETTER(float, X, x)
+
30  GETTERSETTER(float, Y, y)
+
31  GETTERSETTER(float, Width, width)
+
32  GETTERSETTER(float, Height, height)
33 
34  Rectangle& operator=(const ::Rectangle& rect) {
35  set(rect);
@@ -223,24 +223,23 @@ $(function() {
167  }
168 };
169 } // namespace raylib
-
170 
-
171 #endif // RAYLIB_CPP_INCLUDE_RECTANGLE_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Vector4
Vector4 type.
Definition: Vector4.hpp:17
-
raylib::Rectangle::CheckCollision
bool CheckCollision(::Vector2 point) const
Check if point is inside rectangle.
Definition: Rectangle.hpp:117
-
raylib::Rectangle::CheckCollision
bool CheckCollision(::Vector2 center, float radius)
Check collision between circle and rectangle.
Definition: Rectangle.hpp:124
-
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
-
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
170 using RRectangle = raylib::Rectangle;
+
171 
+
172 #endif // RAYLIB_CPP_INCLUDE_RECTANGLE_HPP_
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
-
raylib::Rectangle::GetCollision
inline ::Rectangle GetCollision(::Rectangle rec2) const
Get collision rectangle for two rectangles collision.
Definition: Rectangle.hpp:110
-
raylib::Rectangle::CheckCollision
bool CheckCollision(::Rectangle rec2) const
Check collision between two rectangles.
Definition: Rectangle.hpp:103
+
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
raylib::Rectangle::Draw
Rectangle & Draw(::Color color)
Draw a color-filled rectangle.
Definition: Rectangle.hpp:50
+
raylib::Rectangle::CheckCollision
bool CheckCollision(::Rectangle rec2) const
Check collision between two rectangles.
Definition: Rectangle.hpp:103
+
raylib::Rectangle::GetCollision
inline ::Rectangle GetCollision(::Rectangle rec2) const
Get collision rectangle for two rectangles collision.
Definition: Rectangle.hpp:110
+
raylib::Rectangle::CheckCollision
bool CheckCollision(::Vector2 center, float radius)
Check collision between circle and rectangle.
Definition: Rectangle.hpp:124
+
raylib::Rectangle::CheckCollision
bool CheckCollision(::Vector2 point) const
Check if point is inside rectangle.
Definition: Rectangle.hpp:117
+
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
raylib::Vector4
Vector4 type.
Definition: Vector4.hpp:17
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_render_texture_8hpp_source.html b/docs/_render_texture_8hpp_source.html index f3a9560..d9be111 100644 --- a/docs/_render_texture_8hpp_source.html +++ b/docs/_render_texture_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: RenderTexture.hpp Source File @@ -32,10 +32,10 @@ - + @@ -108,9 +108,9 @@ $(function() {
40  other.depth = {};
41  }
42 
-
43  GETTERSETTER(unsigned int, Id, id)
-
44  GETTERSETTER(::Texture2D, Texture, texture)
-
45  GETTERSETTER(::Texture2D, Depth, depth)
+
43  GETTERSETTER(unsigned int, Id, id)
+
44  GETTERSETTER(::Texture2D, Texture, texture)
+
45  GETTERSETTER(::Texture2D, Depth, depth)
46 
47  RenderTexture& operator=(const ::RenderTexture& texture) {
48  set(texture);
@@ -170,22 +170,22 @@ $(function() {
114 };
115 typedef RenderTexture RenderTexture2D;
116 } // namespace raylib
-
117 
-
118 #endif // RAYLIB_CPP_INCLUDE_RENDERTEXTURE_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::RenderTexture::RenderTexture
RenderTexture()
Default constructor to build an empty RenderTexture.
Definition: RenderTexture.hpp:17
-
raylib::RenderTexture::IsReady
bool IsReady() const
Retrieves whether or not the render texture is ready.
Definition: RenderTexture.hpp:104
+
117 using RRenderTexture = raylib::RenderTexture;
+
118 using RRenderTexture2D = raylib::RenderTexture2D;
+
119 
+
120 #endif // RAYLIB_CPP_INCLUDE_RENDERTEXTURE_HPP_
raylib::RenderTexture
RenderTexture type, for texture rendering.
Definition: RenderTexture.hpp:12
-
raylib::RenderTexture::Load
bool Load(int width, int height)
Loads a render texture at the given width and height.
Definition: RenderTexture.hpp:96
raylib::RenderTexture::EndMode
RenderTexture & EndMode()
Ends drawing to render texture.
Definition: RenderTexture.hpp:88
+
raylib::RenderTexture::IsReady
bool IsReady() const
Retrieves whether or not the render texture is ready.
Definition: RenderTexture.hpp:104
raylib::RenderTexture::BeginMode
RenderTexture & BeginMode()
Initializes render texture for drawing.
Definition: RenderTexture.hpp:80
+
raylib::RenderTexture::Load
bool Load(int width, int height)
Loads a render texture at the given width and height.
Definition: RenderTexture.hpp:96
+
raylib::RenderTexture::RenderTexture
RenderTexture()
Default constructor to build an empty RenderTexture.
Definition: RenderTexture.hpp:17
raylib::Texture
Texture type.
Definition: Texture.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_shader_8hpp_source.html b/docs/_shader_8hpp_source.html index 99eeffe..8e71f17 100644 --- a/docs/_shader_8hpp_source.html +++ b/docs/_shader_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Shader.hpp Source File @@ -32,10 +32,10 @@ - + @@ -115,8 +115,8 @@ $(function() {
54  return ::LoadShaderFromMemory(vsCode.c_str(), fsCode.c_str());
55  }
56 
-
57  GETTERSETTER(unsigned int, Id, id)
-
58  GETTERSETTER(int*, Locs, locs)
+
57  GETTERSETTER(unsigned int, Id, id)
+
58  GETTERSETTER(int*, Locs, locs)
59 
60  Shader& operator=(const ::Shader& shader) {
61  set(shader);
@@ -198,27 +198,26 @@ $(function() {
176  }
177 };
178 } // namespace raylib
-
179 
-
180 #endif // RAYLIB_CPP_INCLUDE_SHADER_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Shader::SetValue
Shader & SetValue(int uniformLoc, const void *value, int uniformType, int count)
Set shader uniform value vector.
Definition: Shader.hpp:140
-
raylib::Shader::LoadFromMemory
::Shader LoadFromMemory(const std::string &vsCode, const std::string &fsCode)
Load a shader from memory.
Definition: Shader.hpp:53
-
raylib::Shader::SetValue
Shader & SetValue(int uniformLoc, const ::Matrix &mat)
Set shader uniform value (matrix 4x4)
Definition: Shader.hpp:150
-
raylib::Shader::GetLocation
int GetLocation(const std::string &uniformName) const
Get shader uniform location.
Definition: Shader.hpp:112
-
raylib::Shader::EndMode
Shader & EndMode()
End custom shader drawing (use default shader).
Definition: Shader.hpp:102
+
179 using RShader = raylib::Shader;
+
180 
+
181 #endif // RAYLIB_CPP_INCLUDE_SHADER_HPP_
raylib::Shader
Shader type (generic)
Definition: Shader.hpp:14
+
raylib::Shader::SetValue
Shader & SetValue(int uniformLoc, const void *value, int uniformType, int count)
Set shader uniform value vector.
Definition: Shader.hpp:140
+
raylib::Shader::EndMode
Shader & EndMode()
End custom shader drawing (use default shader).
Definition: Shader.hpp:102
raylib::Shader::BeginMode
Shader & BeginMode()
Begin custom shader drawing.
Definition: Shader.hpp:94
-
raylib::Shader::GetLocationAttrib
int GetLocationAttrib(const std::string &attribName) const
Get shader attribute location.
Definition: Shader.hpp:121
raylib::Shader::Load
::Shader Load(const std::string &vsFileName, const std::string &fsFileName)
Load shader from files and bind default locations.
Definition: Shader.hpp:44
raylib::Shader::SetValue
Shader & SetValue(int uniformLoc, const ::Texture2D &texture)
Set shader uniform value for texture.
Definition: Shader.hpp:160
-
raylib::Shader::SetValue
Shader & SetValue(int uniformLoc, const void *value, int uniformType)
Set shader uniform value.
Definition: Shader.hpp:130
+
raylib::Shader::LoadFromMemory
::Shader LoadFromMemory(const std::string &vsCode, const std::string &fsCode)
Load a shader from memory.
Definition: Shader.hpp:53
+
raylib::Shader::GetLocation
int GetLocation(const std::string &uniformName) const
Get shader uniform location.
Definition: Shader.hpp:112
+
raylib::Shader::GetLocationAttrib
int GetLocationAttrib(const std::string &attribName) const
Get shader attribute location.
Definition: Shader.hpp:121
raylib::Shader::IsReady
bool IsReady() const
Retrieves whether or not the shader is ready.
Definition: Shader.hpp:168
+
raylib::Shader::SetValue
Shader & SetValue(int uniformLoc, const ::Matrix &mat)
Set shader uniform value (matrix 4x4)
Definition: Shader.hpp:150
+
raylib::Shader::SetValue
Shader & SetValue(int uniformLoc, const void *value, int uniformType)
Set shader uniform value.
Definition: Shader.hpp:130
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_sound_8hpp_source.html b/docs/_sound_8hpp_source.html index 9594f29..ad8bb0a 100644 --- a/docs/_sound_8hpp_source.html +++ b/docs/_sound_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Sound.hpp Source File @@ -32,10 +32,10 @@ - + @@ -119,8 +119,8 @@ $(function() {
63  Unload();
64  }
65 
-
66  GETTERSETTER(unsigned int, FrameCount, frameCount)
-
67  GETTERSETTER(::AudioStream, Stream, stream)
+
66  GETTERSETTER(unsigned int, FrameCount, frameCount)
+
67  GETTERSETTER(::AudioStream, Stream, stream)
68 
69  Sound& operator=(Sound&& other) noexcept {
70  if (this == &other) {
@@ -215,35 +215,34 @@ $(function() {
208  }
209 };
210 } // namespace raylib
-
211 
-
212 #endif // RAYLIB_CPP_INCLUDE_SOUND_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Sound::Load
bool Load(const ::Wave &wave)
Loads the given Wave object into the Sound.
Definition: Sound.hpp:189
-
raylib::Sound::StopMulti
Sound & StopMulti()
Stop any sound playing (using multichannel buffer pool)
Definition: Sound.hpp:148
-
raylib::Sound::SetVolume
Sound & SetVolume(float volume)
Set volume for a sound (1.0 is max level)
Definition: Sound.hpp:163
-
raylib::Sound::Update
Sound & Update(const void *data, int samplesCount)
Update sound buffer with new data.
Definition: Sound.hpp:85
-
raylib::Sound
Wave/Sound management functions.
Definition: Sound.hpp:19
-
raylib::Sound::Pause
Sound & Pause()
Pause a sound.
Definition: Sound.hpp:124
-
raylib::Sound::IsReady
bool IsReady() const
Retrieve whether or not the Sound buffer is loaded.
Definition: Sound.hpp:200
-
raylib::Sound::Resume
Sound & Resume()
Resume a paused sound.
Definition: Sound.hpp:132
-
raylib::Sound::Stop
Sound & Stop()
Stop playing a sound.
Definition: Sound.hpp:116
-
raylib::Sound::Load
bool Load(const std::string &fileName)
Load a sound from the given file.
Definition: Sound.hpp:181
-
raylib::Sound::IsPlaying
bool IsPlaying() const
Check if a sound is currently playing.
Definition: Sound.hpp:156
-
raylib::Sound::Unload
void Unload()
Unload sound.
Definition: Sound.hpp:101
+
211 using RSound = raylib::Sound;
+
212 
+
213 #endif // RAYLIB_CPP_INCLUDE_SOUND_HPP_
raylib::AudioStream
AudioStream management functions.
Definition: AudioStream.hpp:12
-
raylib::Sound::Sound
Sound(const ::Wave &wave)
Loads a sound from the given Wave.
Definition: Sound.hpp:56
-
raylib::Sound::Update
Sound & Update(const void *data)
Update sound buffer with new data, assuming it's the same sample count.
Definition: Sound.hpp:93
-
raylib::Sound::SetPitch
Sound & SetPitch(float pitch)
Set pitch for a sound (1.0 is base level)
Definition: Sound.hpp:171
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
-
raylib::Sound::Play
Sound & Play()
Play a sound.
Definition: Sound.hpp:108
-
raylib::Sound::PlayMulti
Sound & PlayMulti()
Play a sound (using multichannel buffer pool)
Definition: Sound.hpp:140
+
raylib::Sound
Wave/Sound management functions.
Definition: Sound.hpp:19
+
raylib::Sound::SetVolume
Sound & SetVolume(float volume)
Set volume for a sound (1.0 is max level)
Definition: Sound.hpp:163
+
raylib::Sound::Resume
Sound & Resume()
Resume a paused sound.
Definition: Sound.hpp:132
raylib::Sound::Sound
Sound(const std::string &fileName)
Loads a sound from the given file.
Definition: Sound.hpp:45
+
raylib::Sound::Unload
void Unload()
Unload sound.
Definition: Sound.hpp:101
+
raylib::Sound::Load
bool Load(const std::string &fileName)
Load a sound from the given file.
Definition: Sound.hpp:181
+
raylib::Sound::Play
Sound & Play()
Play a sound.
Definition: Sound.hpp:108
+
raylib::Sound::SetPitch
Sound & SetPitch(float pitch)
Set pitch for a sound (1.0 is base level)
Definition: Sound.hpp:171
+
raylib::Sound::Pause
Sound & Pause()
Pause a sound.
Definition: Sound.hpp:124
+
raylib::Sound::StopMulti
Sound & StopMulti()
Stop any sound playing (using multichannel buffer pool)
Definition: Sound.hpp:148
+
raylib::Sound::IsReady
bool IsReady() const
Retrieve whether or not the Sound buffer is loaded.
Definition: Sound.hpp:200
+
raylib::Sound::Update
Sound & Update(const void *data)
Update sound buffer with new data, assuming it's the same sample count.
Definition: Sound.hpp:93
+
raylib::Sound::IsPlaying
bool IsPlaying() const
Check if a sound is currently playing.
Definition: Sound.hpp:156
+
raylib::Sound::Update
Sound & Update(const void *data, int samplesCount)
Update sound buffer with new data.
Definition: Sound.hpp:85
+
raylib::Sound::PlayMulti
Sound & PlayMulti()
Play a sound (using multichannel buffer pool)
Definition: Sound.hpp:140
+
raylib::Sound::Sound
Sound(const ::Wave &wave)
Loads a sound from the given Wave.
Definition: Sound.hpp:56
+
raylib::Sound::Stop
Sound & Stop()
Stop playing a sound.
Definition: Sound.hpp:116
+
raylib::Sound::Load
bool Load(const ::Wave &wave)
Loads the given Wave object into the Sound.
Definition: Sound.hpp:189
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_text_8hpp_source.html b/docs/_text_8hpp_source.html index 2f9a5b8..c462c7f 100644 --- a/docs/_text_8hpp_source.html +++ b/docs/_text_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Text.hpp Source File @@ -32,10 +32,10 @@ - + @@ -122,11 +122,11 @@ $(function() {
84  // Nothing.
85  }
86 
-
87  GETTERSETTER(std::string, Text, text)
-
88  GETTERSETTER(float, FontSize, fontSize)
-
89  GETTERSETTER(::Font, Font, font)
-
90  GETTERSETTER(::Color, Color, color)
-
91  GETTERSETTER(float, Spacing, spacing)
+
87  GETTERSETTER(std::string, Text, text)
+
88  GETTERSETTER(float, FontSize, fontSize)
+
89  GETTERSETTER(::Font, Font, font)
+
90  GETTERSETTER(::Color, Color, color)
+
91  GETTERSETTER(float, Spacing, spacing)
92 
96  inline void Draw(const ::Vector2& position) {
97  ::DrawTextEx(font, text.c_str(), position, fontSize, spacing, color);
@@ -207,38 +207,37 @@ $(function() {
206  }
207 };
208 } // namespace raylib
-
209 
-
210 #endif // RAYLIB_CPP_INCLUDE_TEXT_HPP_
- -
raylib::Text::Draw
static void Draw(const std::string &text, const int posX, const int posY, const int fontSize, const ::Color &color)
Draw text using font and color.
Definition: Text.hpp:154
-
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Text::Measure
int Measure()
Measure string width for default font.
Definition: Text.hpp:124
-
raylib::Text::MeasureEx
Vector2 MeasureEx()
Measure string size for Font.
Definition: Text.hpp:131
-
raylib::Text::Text
Text(const ::Font &font, const std::string &text="", float fontSize=10, float spacing=0, const ::Color &color=WHITE)
Initializes a new Text object with a custom font.
Definition: Text.hpp:73
-
raylib::Text::text
std::string text
The internal text.
Definition: Text.hpp:19
-
raylib::Text::fontSize
float fontSize
The size of the text.
Definition: Text.hpp:24
-
raylib::Text::spacing
float spacing
The character spacing for the text.
Definition: Text.hpp:39
-
raylib::DrawTextPro
static void DrawTextPro(const Font &font, const std::string &text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint)
Draw text using Font and pro parameters (rotation)
Definition: Functions.hpp:271
-
raylib::Font
Font type, includes texture and charSet array data.
Definition: Font.hpp:14
-
raylib::Text::Draw
static void Draw(const ::Font &font, const std::string &text, const ::Vector2 &position, const float fontSize, const float spacing, const ::Color &color)
Draw text using font, color, position, font size and spacing.
Definition: Text.hpp:181
-
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
-
raylib::Text::Draw
void Draw(const ::Vector2 &position, float rotation, const Vector2 &origin={0, 0})
Draw text using Font and pro parameters (rotation).
Definition: Text.hpp:117
-
raylib::Text::Draw
void Draw(int posX, int posY)
Draw text with values in class.
Definition: Text.hpp:103
-
raylib::Text::color
::Color color
The color of the text.
Definition: Text.hpp:29
-
raylib::Text::Draw
void Draw(const ::Vector2 &position)
Draw text with values in class.
Definition: Text.hpp:96
-
raylib::Text::Text
Text(const std::string &text="", float fontSize=10, const ::Color &color=WHITE, const ::Font &font=::GetFontDefault(), float spacing=0)
Initializes a new Text object.
Definition: Text.hpp:50
+
209 using RText = raylib::Text;
+
210 
+
211 #endif // RAYLIB_CPP_INCLUDE_TEXT_HPP_
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
-
raylib::Text::Draw
static void Draw(const std::string &text, const ::Vector2 &pos, const int fontSize, const ::Color &color)
Draw text using font and color, with position defined as Vector2.
Definition: Text.hpp:168
-
raylib::DrawText
static void DrawText(const std::string &text, int posX, int posY, int fontSize, ::Color color)
Draw text (using default font)
Definition: Functions.hpp:256
+
raylib::Font
Font type, includes texture and charSet array data.
Definition: Font.hpp:14
raylib::Text
Text Functions.
Definition: Text.hpp:14
-
raylib::Text::Draw
static void Draw(const ::Font &font, const std::string &text, const ::Vector2 &position, const ::Vector2 &origin, const float rotation, const float fontSize, const float spacing, const ::Color &color)
Draw text using font, color, position, origin, font size and spacing.
Definition: Text.hpp:196
-
raylib::DrawTextEx
static void DrawTextEx(const Font &font, const std::string &text, Vector2 position, float fontSize, float spacing, ::Color tint)
Draw text using font and additional parameters.
Definition: Functions.hpp:263
+
raylib::Text::Draw
void Draw(const ::Vector2 &position)
Draw text with values in class.
Definition: Text.hpp:96
+
raylib::Text::fontSize
float fontSize
The size of the text.
Definition: Text.hpp:24
+
raylib::Text::Draw
void Draw(int posX, int posY)
Draw text with values in class.
Definition: Text.hpp:103
+
raylib::Text::Text
Text(const ::Font &font, const std::string &text="", float fontSize=10, float spacing=0, const ::Color &color=WHITE)
Initializes a new Text object with a custom font.
Definition: Text.hpp:73
+
raylib::Text::Draw
static void Draw(const std::string &text, const ::Vector2 &pos, const int fontSize, const ::Color &color)
Draw text using font and color, with position defined as Vector2.
Definition: Text.hpp:168
+
raylib::Text::Draw
static void Draw(const ::Font &font, const std::string &text, const ::Vector2 &position, const float fontSize, const float spacing, const ::Color &color)
Draw text using font, color, position, font size and spacing.
Definition: Text.hpp:181
+
raylib::Text::spacing
float spacing
The character spacing for the text.
Definition: Text.hpp:39
+
raylib::Text::Measure
int Measure()
Measure string width for default font.
Definition: Text.hpp:124
+
raylib::Text::Draw
void Draw(const ::Vector2 &position, float rotation, const Vector2 &origin={0, 0})
Draw text using Font and pro parameters (rotation).
Definition: Text.hpp:117
raylib::Text::font
::Font font
The internal raylib font to use for the text.
Definition: Text.hpp:34
+
raylib::Text::Text
Text(const std::string &text="", float fontSize=10, const ::Color &color=WHITE, const ::Font &font=::GetFontDefault(), float spacing=0)
Initializes a new Text object.
Definition: Text.hpp:50
+
raylib::Text::Draw
static void Draw(const std::string &text, const int posX, const int posY, const int fontSize, const ::Color &color)
Draw text using font and color.
Definition: Text.hpp:154
+
raylib::Text::MeasureEx
Vector2 MeasureEx()
Measure string size for Font.
Definition: Text.hpp:131
+
raylib::Text::color
::Color color
The color of the text.
Definition: Text.hpp:29
+
raylib::Text::text
std::string text
The internal text.
Definition: Text.hpp:19
+
raylib::Text::Draw
static void Draw(const ::Font &font, const std::string &text, const ::Vector2 &position, const ::Vector2 &origin, const float rotation, const float fontSize, const float spacing, const ::Color &color)
Draw text using font, color, position, origin, font size and spacing.
Definition: Text.hpp:196
+
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+
raylib::DrawText
static void DrawText(const std::string &text, int posX, int posY, int fontSize, ::Color color)
Draw text (using default font)
Definition: Functions.hpp:256
+
raylib::DrawTextPro
static void DrawTextPro(const Font &font, const std::string &text, Vector2 position, Vector2 origin, float rotation, float fontSize, float spacing, ::Color tint)
Draw text using Font and pro parameters (rotation)
Definition: Functions.hpp:271
+
raylib::DrawTextEx
static void DrawTextEx(const Font &font, const std::string &text, Vector2 position, float fontSize, float spacing, ::Color tint)
Draw text using font and additional parameters.
Definition: Functions.hpp:263
+ diff --git a/docs/_texture_8hpp_source.html b/docs/_texture_8hpp_source.html index 51bf56a..f3a031c 100644 --- a/docs/_texture_8hpp_source.html +++ b/docs/_texture_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Texture.hpp Source File @@ -32,10 +32,10 @@ - + @@ -86,272 +86,276 @@ $(function() {
12 namespace raylib {
16 class Texture : public ::Texture {
17  public:
-
21  Texture(unsigned int id = 0,
-
22  int width = 0,
-
23  int height = 0,
-
24  int mipmaps = 0,
-
25  int format = 0) : ::Texture{id, width, height, mipmaps, format} {
-
26  // Nothing.
-
27  }
-
28 
-
32  Texture(const ::Texture& texture) {
-
33  set(texture);
-
34  }
-
35 
-
41  Texture(const ::Image& image) {
-
42  if (!Load(image)) {
-
43  throw RaylibException("Failed to load Texture from Image");
-
44  }
-
45  }
-
46 
-
54  Texture(const ::Image& image, int layout) {
-
55  if (!Load(image, layout)) {
-
56  throw RaylibException("Failed to load Texture from Cubemap");
-
57  }
-
58  }
-
59 
-
65  Texture(const std::string& fileName) {
-
66  if (!Load(fileName)) {
-
67  throw RaylibException(TextFormat("Failed to load Texture from file: %s", fileName.c_str()));
-
68  }
-
69  }
-
70 
-
71  Texture(const Texture&) = delete;
-
72 
-
73  Texture(Texture&& other) {
-
74  set(other);
-
75 
-
76  other.id = 0;
-
77  other.width = 0;
-
78  other.height = 0;
-
79  other.mipmaps = 0;
-
80  other.format = 0;
-
81  }
-
82 
-
83  ~Texture() {
-
84  Unload();
-
85  }
-
86 
-
87  GETTERSETTER(unsigned int, Id, id)
-
88  GETTERSETTER(int, Width, width)
-
89  GETTERSETTER(int, Height, height)
-
90  GETTERSETTER(int, Mipmaps, mipmaps)
-
91  GETTERSETTER(int, Format, format)
-
92 
-
93  Texture& operator=(const ::Texture& texture) {
-
94  set(texture);
-
95  return *this;
-
96  }
-
97 
-
98  Texture& operator=(const Texture&) = delete;
-
99 
-
100  Texture& operator=(Texture&& other) noexcept {
-
101  if (this == &other) {
-
102  return *this;
-
103  }
-
104 
-
105  Unload();
-
106  set(other);
-
107 
-
108  other.id = 0;
-
109  other.width = 0;
-
110  other.height = 0;
-
111  other.mipmaps = 0;
-
112  other.format = 0;
-
113 
-
114  return *this;
-
115  }
-
116 
-
120  inline ::Vector2 GetSize() const {
-
121  return {static_cast<float>(width), static_cast<float>(height)};
-
122  }
-
123 
-
127  bool Load(const ::Image& image) {
-
128  set(::LoadTextureFromImage(image));
-
129  return IsReady();
-
130  }
-
131 
-
135  bool Load(const ::Image& image, int layoutType) {
-
136  set(::LoadTextureCubemap(image, layoutType));
-
137  return IsReady();
-
138  }
-
139 
-
143  bool Load(const std::string& fileName) {
-
144  set(::LoadTexture(fileName.c_str()));
-
145  return IsReady();
-
146  }
-
147 
-
151  inline void Unload() {
-
152  ::UnloadTexture(*this);
-
153  }
-
154 
-
158  inline Texture& Update(const void *pixels) {
-
159  ::UpdateTexture(*this, pixels);
-
160  return *this;
-
161  }
-
162 
-
166  inline Texture& Update(::Rectangle rec, const void *pixels) {
-
167  UpdateTextureRec(*this, rec, pixels);
-
168  return *this;
-
169  }
-
170 
-
174  inline ::Image GetData() const {
-
175  return ::LoadImageFromTexture(*this);
-
176  }
-
177 
-
181  inline operator raylib::Image() {
-
182  return GetData();
-
183  }
-
184 
-
188  inline Texture& GenMipmaps() {
-
189  ::GenTextureMipmaps(this);
-
190  return *this;
-
191  }
-
192 
-
196  inline Texture& SetFilter(int filterMode) {
-
197  ::SetTextureFilter(*this, filterMode);
-
198  return *this;
-
199  }
-
200 
-
204  inline Texture& SetWrap(int wrapMode) {
-
205  ::SetTextureWrap(*this, wrapMode);
-
206  return *this;
-
207  }
-
208 
-
212  inline Texture& Draw(int posX = 0, int posY = 0, ::Color tint = {255, 255, 255, 255}) {
-
213  ::DrawTexture(*this, posX, posY, tint);
-
214  return *this;
-
215  }
-
216 
-
217  inline Texture& Draw(::Vector2 position, ::Color tint = {255, 255, 255, 255}) {
-
218  ::DrawTextureV(*this, position, tint);
+
21  Texture() : ::Texture{0, 0, 0, 0, 0} {
+
22  // Nothing.
+
23  }
+
24 
+
28  Texture(unsigned int id, int width, int height,
+
29  int mipmaps = 1, int format = PIXELFORMAT_UNCOMPRESSED_R8G8B8A8)
+
30  : ::Texture{id, width, height, mipmaps, format} {
+
31  // Nothing.
+
32  }
+
33 
+
37  Texture(const ::Texture& texture) {
+
38  set(texture);
+
39  }
+
40 
+
46  Texture(const ::Image& image) {
+
47  Load(image);
+
48  }
+
49 
+
57  Texture(const ::Image& image, int layout) {
+
58  Load(image, layout);
+
59  }
+
60 
+
66  Texture(const std::string& fileName) {
+
67  Load(fileName);
+
68  }
+
69 
+
70  Texture(const Texture&) = delete;
+
71 
+
72  Texture(Texture&& other) {
+
73  set(other);
+
74 
+
75  other.id = 0;
+
76  other.width = 0;
+
77  other.height = 0;
+
78  other.mipmaps = 0;
+
79  other.format = 0;
+
80  }
+
81 
+
82  ~Texture() {
+
83  Unload();
+
84  }
+
85 
+
86  GETTERSETTER(unsigned int, Id, id)
+
87  GETTERSETTER(int, Width, width)
+
88  GETTERSETTER(int, Height, height)
+
89  GETTERSETTER(int, Mipmaps, mipmaps)
+
90  GETTERSETTER(int, Format, format)
+
91 
+
92  Texture& operator=(const ::Texture& texture) {
+
93  set(texture);
+
94  return *this;
+
95  }
+
96 
+
97  Texture& operator=(const Texture&) = delete;
+
98 
+
99  Texture& operator=(Texture&& other) noexcept {
+
100  if (this == &other) {
+
101  return *this;
+
102  }
+
103 
+
104  Unload();
+
105  set(other);
+
106 
+
107  other.id = 0;
+
108  other.width = 0;
+
109  other.height = 0;
+
110  other.mipmaps = 0;
+
111  other.format = 0;
+
112 
+
113  return *this;
+
114  }
+
115 
+
119  inline ::Vector2 GetSize() const {
+
120  return {static_cast<float>(width), static_cast<float>(height)};
+
121  }
+
122 
+
126  void Load(const ::Image& image) {
+
127  set(::LoadTextureFromImage(image));
+
128  if (!IsReady()) {
+
129  throw RaylibException("Failed to load Texture from Image");
+
130  }
+
131  }
+
132 
+
136  void Load(const ::Image& image, int layoutType) {
+
137  set(::LoadTextureCubemap(image, layoutType));
+
138  if (!IsReady()) {
+
139  throw RaylibException("Failed to load Texture from Cubemap");
+
140  }
+
141  }
+
142 
+
146  void Load(const std::string& fileName) {
+
147  set(::LoadTexture(fileName.c_str()));
+
148  if (!IsReady()) {
+
149  throw RaylibException("Failed to load Texture from file: " + fileName);
+
150  }
+
151  }
+
152 
+
156  inline void Unload() {
+
157  ::UnloadTexture(*this);
+
158  }
+
159 
+
163  inline Texture& Update(const void *pixels) {
+
164  ::UpdateTexture(*this, pixels);
+
165  return *this;
+
166  }
+
167 
+
171  inline Texture& Update(::Rectangle rec, const void *pixels) {
+
172  UpdateTextureRec(*this, rec, pixels);
+
173  return *this;
+
174  }
+
175 
+
179  inline ::Image GetData() const {
+
180  return ::LoadImageFromTexture(*this);
+
181  }
+
182 
+
186  inline operator raylib::Image() {
+
187  return GetData();
+
188  }
+
189 
+
193  inline Texture& GenMipmaps() {
+
194  ::GenTextureMipmaps(this);
+
195  return *this;
+
196  }
+
197 
+
201  inline Texture& SetFilter(int filterMode) {
+
202  ::SetTextureFilter(*this, filterMode);
+
203  return *this;
+
204  }
+
205 
+
209  inline Texture& SetWrap(int wrapMode) {
+
210  ::SetTextureWrap(*this, wrapMode);
+
211  return *this;
+
212  }
+
213 
+
217  inline Texture& Draw(int posX = 0, int posY = 0, ::Color tint = {255, 255, 255, 255}) {
+
218  ::DrawTexture(*this, posX, posY, tint);
219  return *this;
220  }
221 
-
222  inline Texture& Draw(::Vector2 position, float rotation, float scale = 1.0f,
-
223  ::Color tint = {255, 255, 255, 255}) {
-
224  ::DrawTextureEx(*this, position, rotation, scale, tint);
-
225  return *this;
-
226  }
-
227 
-
228  inline Texture& Draw(::Rectangle sourceRec, ::Vector2 position = {0, 0},
-
229  ::Color tint = {255, 255, 255, 255}) {
-
230  ::DrawTextureRec(*this, sourceRec, position, tint);
-
231  return *this;
-
232  }
-
233 
-
234  inline Texture& Draw(::Vector2 tiling, ::Vector2 offset, ::Rectangle quad,
-
235  ::Color tint = {255, 255, 255, 255}) {
-
236  ::DrawTextureQuad(*this, tiling, offset, quad, tint);
-
237  return *this;
-
238  }
-
239 
-
240  inline Texture& Draw(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin = {0, 0},
-
241  float rotation = 0, ::Color tint = {255, 255, 255, 255}) {
-
242  ::DrawTexturePro(*this, sourceRec, destRec, origin, rotation, tint);
-
243  return *this;
-
244  }
-
245 
-
246  inline Texture& Draw(::NPatchInfo nPatchInfo, ::Rectangle destRec, ::Vector2 origin = {0, 0},
-
247  float rotation = 0, ::Color tint = {255, 255, 255, 255}) {
-
248  ::DrawTextureNPatch(*this, nPatchInfo, destRec, origin, rotation, tint);
-
249  return *this;
-
250  }
-
251 
-
252  inline Texture& Draw(::Vector3 position, float width, float height, float length,
-
253  ::Color tint = {255, 255, 255, 255}) {
-
254  ::DrawCubeTexture(*this, position, width, height, length, tint);
-
255  return *this;
-
256  }
-
257 
-
258  inline Texture& DrawTiled(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin = {0, 0},
-
259  float rotation = 0, float scale = 1, Color tint = {255, 255, 255, 255}) {
-
260  ::DrawTextureTiled(*this, sourceRec, destRec, origin, rotation, scale, tint);
-
261  return *this;
-
262  }
-
263 
-
264  inline Texture& DrawPoly(Vector2 center, Vector2 *points,
-
265  Vector2 *texcoords, int pointsCount,
-
266  Color tint = {255, 255, 255, 255}) {
-
267  ::DrawTexturePoly(*this, center, points, texcoords, pointsCount, tint);
-
268  return *this;
-
269  }
-
270 
-
274  inline Texture& SetMaterial(::Material *material, int mapType = MATERIAL_MAP_NORMAL) {
-
275  ::SetMaterialTexture(material, mapType, *this);
-
276  return *this;
-
277  }
-
278 
-
279  inline Texture& SetMaterial(const ::Material& material, int mapType = MATERIAL_MAP_NORMAL) {
-
280  ::SetMaterialTexture((::Material*)(&material), mapType, *this);
+
222  inline Texture& Draw(::Vector2 position, ::Color tint = {255, 255, 255, 255}) {
+
223  ::DrawTextureV(*this, position, tint);
+
224  return *this;
+
225  }
+
226 
+
227  inline Texture& Draw(::Vector2 position, float rotation, float scale = 1.0f,
+
228  ::Color tint = {255, 255, 255, 255}) {
+
229  ::DrawTextureEx(*this, position, rotation, scale, tint);
+
230  return *this;
+
231  }
+
232 
+
233  inline Texture& Draw(::Rectangle sourceRec, ::Vector2 position = {0, 0},
+
234  ::Color tint = {255, 255, 255, 255}) {
+
235  ::DrawTextureRec(*this, sourceRec, position, tint);
+
236  return *this;
+
237  }
+
238 
+
239  inline Texture& Draw(::Vector2 tiling, ::Vector2 offset, ::Rectangle quad,
+
240  ::Color tint = {255, 255, 255, 255}) {
+
241  ::DrawTextureQuad(*this, tiling, offset, quad, tint);
+
242  return *this;
+
243  }
+
244 
+
245  inline Texture& Draw(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin = {0, 0},
+
246  float rotation = 0, ::Color tint = {255, 255, 255, 255}) {
+
247  ::DrawTexturePro(*this, sourceRec, destRec, origin, rotation, tint);
+
248  return *this;
+
249  }
+
250 
+
251  inline Texture& Draw(::NPatchInfo nPatchInfo, ::Rectangle destRec, ::Vector2 origin = {0, 0},
+
252  float rotation = 0, ::Color tint = {255, 255, 255, 255}) {
+
253  ::DrawTextureNPatch(*this, nPatchInfo, destRec, origin, rotation, tint);
+
254  return *this;
+
255  }
+
256 
+
257  inline Texture& Draw(::Vector3 position, float width, float height, float length,
+
258  ::Color tint = {255, 255, 255, 255}) {
+
259  ::DrawCubeTexture(*this, position, width, height, length, tint);
+
260  return *this;
+
261  }
+
262 
+
263  inline Texture& DrawTiled(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin = {0, 0},
+
264  float rotation = 0, float scale = 1, Color tint = {255, 255, 255, 255}) {
+
265  ::DrawTextureTiled(*this, sourceRec, destRec, origin, rotation, scale, tint);
+
266  return *this;
+
267  }
+
268 
+
269  inline Texture& DrawPoly(Vector2 center, Vector2 *points,
+
270  Vector2 *texcoords, int pointsCount,
+
271  Color tint = {255, 255, 255, 255}) {
+
272  ::DrawTexturePoly(*this, center, points, texcoords, pointsCount, tint);
+
273  return *this;
+
274  }
+
275 
+
279  inline Texture& SetMaterial(::Material *material, int mapType = MATERIAL_MAP_NORMAL) {
+
280  ::SetMaterialTexture(material, mapType, *this);
281  return *this;
282  }
283 
-
287  inline Texture& SetShapes(const ::Rectangle& source) {
-
288  ::SetShapesTexture(*this, source);
-
289  return *this;
-
290  }
-
291 
-
295  inline Texture& SetShaderValue(const ::Shader& shader, int locIndex) {
-
296  ::SetShaderValueTexture(shader, locIndex, *this);
-
297  return *this;
-
298  }
-
299 
-
305  bool IsReady() const {
-
306  return id != 0;
-
307  }
-
308 
-
309  private:
-
310  void set(const ::Texture& texture) {
-
311  id = texture.id;
-
312  width = texture.width;
-
313  height = texture.height;
-
314  mipmaps = texture.mipmaps;
-
315  format = texture.format;
-
316  }
-
317 };
-
318 
-
319 // Create the Texture aliases.
-
320 typedef Texture Texture2D;
-
321 typedef Texture TextureCubemap;
-
322 
-
323 } // namespace raylib
-
324 
-
325 #endif // RAYLIB_CPP_INCLUDE_TEXTURE_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Texture::SetWrap
Texture & SetWrap(int wrapMode)
Set texture wrapping mode.
Definition: Texture.hpp:204
-
raylib::Texture::Load
bool Load(const ::Image &image)
Load texture from image data.
Definition: Texture.hpp:127
-
raylib::Image
Image type, bpp always RGBA (32bit)
Definition: Image.hpp:16
-
raylib::Texture::GetSize
inline ::Vector2 GetSize() const
Retrieve the width and height of the texture.
Definition: Texture.hpp:120
-
raylib::Texture::Texture
Texture(const ::Image &image)
Creates a texture from the given Image.
Definition: Texture.hpp:41
-
raylib::Texture::IsReady
bool IsReady() const
Determines whether or not the Texture has been loaded and is ready.
Definition: Texture.hpp:305
-
raylib::Texture::SetShapes
Texture & SetShapes(const ::Rectangle &source)
Set texture and rectangle to be used on shapes drawing.
Definition: Texture.hpp:287
-
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
-
raylib::Texture::Draw
Texture & Draw(int posX=0, int posY=0, ::Color tint={255, 255, 255, 255})
Draw a Texture2D.
Definition: Texture.hpp:212
-
raylib::Texture::Texture
Texture(const std::string &fileName)
Load texture from file into GPU memory (VRAM)
Definition: Texture.hpp:65
-
raylib::Texture::Texture
Texture(const ::Image &image, int layout)
Load cubemap from image, multiple image cubemap layouts supported.
Definition: Texture.hpp:54
-
raylib::Texture::SetFilter
Texture & SetFilter(int filterMode)
Set texture scaling filter mode.
Definition: Texture.hpp:196
+
284  inline Texture& SetMaterial(const ::Material& material, int mapType = MATERIAL_MAP_NORMAL) {
+
285  ::SetMaterialTexture((::Material*)(&material), mapType, *this);
+
286  return *this;
+
287  }
+
288 
+
292  inline Texture& SetShapes(const ::Rectangle& source) {
+
293  ::SetShapesTexture(*this, source);
+
294  return *this;
+
295  }
+
296 
+
300  inline Texture& SetShaderValue(const ::Shader& shader, int locIndex) {
+
301  ::SetShaderValueTexture(shader, locIndex, *this);
+
302  return *this;
+
303  }
+
304 
+
310  bool IsReady() const {
+
311  return id != 0;
+
312  }
+
313 
+
314  private:
+
315  void set(const ::Texture& texture) {
+
316  id = texture.id;
+
317  width = texture.width;
+
318  height = texture.height;
+
319  mipmaps = texture.mipmaps;
+
320  format = texture.format;
+
321  }
+
322 };
+
323 
+
324 // Create the Texture aliases.
+
325 typedef Texture Texture2D;
+
326 typedef Texture TextureCubemap;
+
327 
+
328 } // namespace raylib
+
329 using RTexture = raylib::Texture;
+
330 using RTexture2D = raylib::Texture2D;
+
331 using RTextureCubemap = raylib::TextureCubemap;
+
332 
+
333 #endif // RAYLIB_CPP_INCLUDE_TEXTURE_HPP_
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
-
raylib::Texture::Load
bool Load(const std::string &fileName)
Load texture from file into GPU memory (VRAM)
Definition: Texture.hpp:143
-
raylib::Texture::GetData
inline ::Image GetData() const
Get pixel data from GPU texture and return an Image.
Definition: Texture.hpp:174
-
raylib::Texture::Load
bool Load(const ::Image &image, int layoutType)
Load cubemap from image, multiple image cubemap layouts supported.
Definition: Texture.hpp:135
-
raylib::Texture::SetMaterial
Texture & SetMaterial(::Material *material, int mapType=MATERIAL_MAP_NORMAL)
Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
Definition: Texture.hpp:274
-
raylib::Texture
Texture type.
Definition: Texture.hpp:16
-
raylib::Texture::Unload
void Unload()
Unload texture from GPU memory (VRAM)
Definition: Texture.hpp:151
-
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
-
raylib::Texture::GenMipmaps
Texture & GenMipmaps()
Generate GPU mipmaps for a texture.
Definition: Texture.hpp:188
-
raylib::Texture::Texture
Texture(unsigned int id=0, int width=0, int height=0, int mipmaps=0, int format=0)
Default constructor to create an empty Texture object.
Definition: Texture.hpp:21
-
raylib::Texture::Texture
Texture(const ::Texture &texture)
Creates a texture object based on the given Texture struct data.
Definition: Texture.hpp:32
+
raylib::Image
Image type, bpp always RGBA (32bit)
Definition: Image.hpp:16
raylib::Material
Material type (generic)
Definition: Material.hpp:14
-
raylib::Texture::SetShaderValue
Texture & SetShaderValue(const ::Shader &shader, int locIndex)
Set shader uniform value for texture (sampler2d)
Definition: Texture.hpp:295
-
raylib::Texture::Update
Texture & Update(::Rectangle rec, const void *pixels)
Update GPU texture rectangle with new data.
Definition: Texture.hpp:166
-
raylib::Texture::Update
Texture & Update(const void *pixels)
Update GPU texture with new data.
Definition: Texture.hpp:158
+
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
+
raylib::Texture
Texture type.
Definition: Texture.hpp:16
+
raylib::Texture::Unload
void Unload()
Unload texture from GPU memory (VRAM)
Definition: Texture.hpp:156
+
raylib::Texture::Load
void Load(const ::Image &image, int layoutType)
Load cubemap from image, multiple image cubemap layouts supported.
Definition: Texture.hpp:136
+
raylib::Texture::Texture
Texture(const ::Texture &texture)
Creates a texture object based on the given Texture struct data.
Definition: Texture.hpp:37
+
raylib::Texture::SetWrap
Texture & SetWrap(int wrapMode)
Set texture wrapping mode.
Definition: Texture.hpp:209
+
raylib::Texture::Texture
Texture(unsigned int id, int width, int height, int mipmaps=1, int format=PIXELFORMAT_UNCOMPRESSED_R8G8B8A8)
Move/Create a texture structure manually.
Definition: Texture.hpp:28
+
raylib::Texture::Load
void Load(const ::Image &image)
Load texture from image data.
Definition: Texture.hpp:126
+
raylib::Texture::SetFilter
Texture & SetFilter(int filterMode)
Set texture scaling filter mode.
Definition: Texture.hpp:201
+
raylib::Texture::GenMipmaps
Texture & GenMipmaps()
Generate GPU mipmaps for a texture.
Definition: Texture.hpp:193
+
raylib::Texture::GetSize
inline ::Vector2 GetSize() const
Retrieve the width and height of the texture.
Definition: Texture.hpp:119
+
raylib::Texture::GetData
inline ::Image GetData() const
Get pixel data from GPU texture and return an Image.
Definition: Texture.hpp:179
+
raylib::Texture::Texture
Texture(const ::Image &image)
Creates a texture from the given Image.
Definition: Texture.hpp:46
+
raylib::Texture::Draw
Texture & Draw(int posX=0, int posY=0, ::Color tint={255, 255, 255, 255})
Draw a Texture2D.
Definition: Texture.hpp:217
+
raylib::Texture::Load
void Load(const std::string &fileName)
Load texture from file into GPU memory (VRAM)
Definition: Texture.hpp:146
+
raylib::Texture::SetShapes
Texture & SetShapes(const ::Rectangle &source)
Set texture and rectangle to be used on shapes drawing.
Definition: Texture.hpp:292
+
raylib::Texture::IsReady
bool IsReady() const
Determines whether or not the Texture has been loaded and is ready.
Definition: Texture.hpp:310
+
raylib::Texture::Texture
Texture()
Default texture constructor.
Definition: Texture.hpp:21
+
raylib::Texture::SetMaterial
Texture & SetMaterial(::Material *material, int mapType=MATERIAL_MAP_NORMAL)
Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
Definition: Texture.hpp:279
+
raylib::Texture::Texture
Texture(const ::Image &image, int layout)
Load cubemap from image, multiple image cubemap layouts supported.
Definition: Texture.hpp:57
+
raylib::Texture::Texture
Texture(const std::string &fileName)
Load texture from file into GPU memory (VRAM)
Definition: Texture.hpp:66
+
raylib::Texture::Update
Texture & Update(const void *pixels)
Update GPU texture with new data.
Definition: Texture.hpp:163
+
raylib::Texture::Update
Texture & Update(::Rectangle rec, const void *pixels)
Update GPU texture rectangle with new data.
Definition: Texture.hpp:171
+
raylib::Texture::SetShaderValue
Texture & SetShaderValue(const ::Shader &shader, int locIndex)
Set shader uniform value for texture (sampler2d)
Definition: Texture.hpp:300
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_vector2_8hpp_source.html b/docs/_vector2_8hpp_source.html index 80cf819..91fb700 100644 --- a/docs/_vector2_8hpp_source.html +++ b/docs/_vector2_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Vector2.hpp Source File @@ -32,10 +32,10 @@ - + @@ -94,8 +94,8 @@ $(function() {
23  Vector2(float x) : ::Vector2{x, 0} {}
24  Vector2() : ::Vector2{0, 0} {}
25 
-
26  GETTERSETTER(float, X, x)
-
27  GETTERSETTER(float, Y, y)
+
26  GETTERSETTER(float, X, x)
+
27  GETTERSETTER(float, Y, y)
28 
32  Vector2& operator=(const ::Vector2& vector2) {
33  set(vector2);
@@ -112,7 +112,6 @@ $(function() {
50  }
51 
52 #ifndef RAYLIB_CPP_NO_MATH
-
53 
56  inline Vector2 Add(const ::Vector2& vector2) const {
57  return Vector2Add(*this, vector2);
58  }
@@ -334,60 +333,59 @@ $(function() {
391 };
392 
393 } // namespace raylib
-
394 
-
395 #endif // RAYLIB_CPP_INCLUDE_VECTOR2_HPP_
- -
raylib::Vector2::CheckCollision
bool CheckCollision(::Vector2 p1, ::Vector2 p2, ::Vector2 p3) const
Check if point is inside a triangle.
Definition: Vector2.hpp:372
-
raylib::Vector2::operator+=
Vector2 & operator+=(const ::Vector2 &vector2)
Add two vectors (v1 + v2)
Definition: Vector2.hpp:70
-
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Vector2::Reflect
Vector2 Reflect(const ::Vector2 &normal) const
Calculate reflected vector to normal.
Definition: Vector2.hpp:258
-
raylib::Vector2::MoveTowards
Vector2 MoveTowards(const ::Vector2 &target, float maxDistance) const
Move Vector towards target.
Definition: Vector2.hpp:272
-
raylib::Vector2::operator/=
Vector2 & operator/=(const ::Vector2 &vector2)
Divide vector by vector.
Definition: Vector2.hpp:176
-
raylib::Vector2::Length
float Length() const
Calculate vector length.
Definition: Vector2.hpp:209
-
raylib::Vector2::Subtract
Vector2 Subtract(const ::Vector2 &vector2) const
Subtract two vectors (v1 - v2)
Definition: Vector2.hpp:79
-
raylib::Vector2::Scale
Vector2 Scale(const float scale) const
Scale vector (multiply by value)
Definition: Vector2.hpp:139
-
raylib::Vector2::operator/=
Vector2 & operator/=(const float div)
Divide vector by value.
Definition: Vector2.hpp:199
-
raylib::Vector2::operator==
bool operator==(const ::Vector2 &other)
Determine whether or not the vectors are equal.
Definition: Vector2.hpp:40
-
raylib::Vector2::Normalize
Vector2 Normalize() const
Normalize provided vector.
Definition: Vector2.hpp:223
-
raylib::Vector2::Zero
static Vector2 Zero()
Vector with components value 0.0f.
Definition: Vector2.hpp:279
-
raylib::Vector2::Multiply
Vector2 Multiply(const ::Vector2 &vector2) const
Multiply vector by vector.
Definition: Vector2.hpp:116
-
raylib::Vector2::operator!=
bool operator!=(const ::Vector2 &other)
Determines if the vectors are not equal.
Definition: Vector2.hpp:48
-
raylib::Vector2::CheckCollision
bool CheckCollision(::Rectangle rec) const
Check if point is inside rectangle.
Definition: Vector2.hpp:358
-
raylib::Vector2::CheckCollision
bool CheckCollision(::Vector2 center, float radius) const
Check if point is inside circle.
Definition: Vector2.hpp:365
-
raylib::Vector2::operator*
Vector2 operator*(const float scale) const
Scale vector (multiply by value)
Definition: Vector2.hpp:146
-
raylib::Vector2::operator/
Vector2 operator/(const ::Vector2 &vector2) const
Divide vector by vector.
Definition: Vector2.hpp:169
-
raylib::Vector2::operator-=
Vector2 & operator-=(const ::Vector2 &vector2)
Add two vectors (v1 + v2)
Definition: Vector2.hpp:93
-
raylib::Vector2::operator-
Vector2 operator-(const ::Vector2 &vector2) const
Subtract two vectors (v1 - v2)
Definition: Vector2.hpp:86
-
raylib::Vector2::Lerp
Vector2 Lerp(const ::Vector2 &vector2, float amount) const
Calculate linear interpolation between two vectors.
Definition: Vector2.hpp:251
-
raylib::Vector2::One
static Vector2 One()
Vector with components value 1.0f.
Definition: Vector2.hpp:286
-
raylib::Vector2::LengthSqr
float LengthSqr() const
Calculate vector square length.
Definition: Vector2.hpp:216
+
394 using RVector2 = raylib::Vector2;
+
395 
+
396 #endif // RAYLIB_CPP_INCLUDE_VECTOR2_HPP_
+
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
-
raylib::Vector2::operator-
Vector2 operator-() const
Negate vector.
Definition: Vector2.hpp:109
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
+
raylib::Vector2::CheckCollision
bool CheckCollision(::Vector2 p1, ::Vector2 p2, ::Vector2 p3) const
Check if point is inside a triangle.
Definition: Vector2.hpp:372
+
raylib::Vector2::MoveTowards
Vector2 MoveTowards(const ::Vector2 &target, float maxDistance) const
Move Vector towards target.
Definition: Vector2.hpp:272
+
raylib::Vector2::Subtract
Vector2 Subtract(const ::Vector2 &vector2) const
Subtract two vectors (v1 - v2)
Definition: Vector2.hpp:79
+
raylib::Vector2::operator*
Vector2 operator*(const float scale) const
Scale vector (multiply by value)
Definition: Vector2.hpp:146
+
raylib::Vector2::CheckCollision
bool CheckCollision(::Rectangle rec) const
Check if point is inside rectangle.
Definition: Vector2.hpp:358
+
raylib::Vector2::operator*=
Vector2 & operator*=(const float scale)
Scale vector (multiply by value)
Definition: Vector2.hpp:153
+
raylib::Vector2::Lerp
Vector2 Lerp(const ::Vector2 &vector2, float amount) const
Calculate linear interpolation between two vectors.
Definition: Vector2.hpp:251
+
raylib::Vector2::Length
float Length() const
Calculate vector length.
Definition: Vector2.hpp:209
+
raylib::Vector2::DotProduct
float DotProduct(const ::Vector2 &vector2) const
Calculate two vectors dot product.
Definition: Vector2.hpp:230
+
raylib::Vector2::Rotate
Vector2 Rotate(float degrees) const
Rotate Vector by float in Degrees.
Definition: Vector2.hpp:265
+
raylib::Vector2::LengthSqr
float LengthSqr() const
Calculate vector square length.
Definition: Vector2.hpp:216
+
raylib::Vector2::operator*=
Vector2 & operator*=(const ::Vector2 &vector2)
Multiply vector by vector.
Definition: Vector2.hpp:130
+
raylib::Vector2::operator-=
Vector2 & operator-=(const ::Vector2 &vector2)
Add two vectors (v1 + v2)
Definition: Vector2.hpp:93
+
raylib::Vector2::Distance
float Distance(const ::Vector2 &vector2) const
Calculate distance between two vectors.
Definition: Vector2.hpp:244
+
raylib::Vector2::CheckCollision
bool CheckCollision(::Vector2 center, float radius) const
Check if point is inside circle.
Definition: Vector2.hpp:365
+
raylib::Vector2::Divide
Vector2 Divide(const ::Vector2 &vector2) const
Divide vector by vector.
Definition: Vector2.hpp:162
+
raylib::Vector2::CheckCollisionCircle
bool CheckCollisionCircle(float radius, ::Rectangle rec) const
Check collision between circle and rectangle.
Definition: Vector2.hpp:351
+
raylib::Vector2::Zero
static Vector2 Zero()
Vector with components value 0.0f.
Definition: Vector2.hpp:279
raylib::Vector2::DrawLineBezierQuad
Vector2 & DrawLineBezierQuad(::Vector2 endPos, ::Vector2 controlPos, float thick, ::Color color)
Draw line using quadratic bezier curves with a control point.
Definition: Vector2.hpp:314
raylib::Vector2::CheckCollisionCircle
bool CheckCollisionCircle(float radius1, ::Vector2 center2, float radius2) const
Check collision between two circles.
Definition: Vector2.hpp:344
-
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
-
raylib::Vector2::Add
Vector2 Add(const ::Vector2 &vector2) const
Add two vectors (v1 + v2)
Definition: Vector2.hpp:56
-
raylib::Vector2::CheckCollisionCircle
bool CheckCollisionCircle(float radius, ::Rectangle rec) const
Check collision between circle and rectangle.
Definition: Vector2.hpp:351
-
raylib::Vector2::Negate
Vector2 Negate() const
Negate vector.
Definition: Vector2.hpp:102
-
raylib::Vector2::Rotate
Vector2 Rotate(float degrees) const
Rotate Vector by float in Degrees.
Definition: Vector2.hpp:265
-
raylib::Vector2::operator*=
Vector2 & operator*=(const float scale)
Scale vector (multiply by value)
Definition: Vector2.hpp:153
-
raylib::Vector2::Distance
float Distance(const ::Vector2 &vector2) const
Calculate distance between two vectors.
Definition: Vector2.hpp:244
-
raylib::Vector2::Divide
Vector2 Divide(const ::Vector2 &vector2) const
Divide vector by vector.
Definition: Vector2.hpp:162
-
raylib::Vector2::operator*=
Vector2 & operator*=(const ::Vector2 &vector2)
Multiply vector by vector.
Definition: Vector2.hpp:130
-
raylib::Vector2::operator/
Vector2 operator/(const float div) const
Divide vector by value.
Definition: Vector2.hpp:192
-
raylib::Vector2::Angle
float Angle(const ::Vector2 &vector2) const
Calculate angle from two vectors in X-axis.
Definition: Vector2.hpp:237
-
raylib::Vector2::operator*
Vector2 operator*(const ::Vector2 &vector2) const
Multiply vector by vector.
Definition: Vector2.hpp:123
-
raylib::Vector2::DotProduct
float DotProduct(const ::Vector2 &vector2) const
Calculate two vectors dot product.
Definition: Vector2.hpp:230
-
raylib::Vector2::DrawCircle
Vector2 & DrawCircle(float radius, ::Color color)
Draw a color-filled circle (Vector version)
Definition: Vector2.hpp:326
+
raylib::Vector2::Reflect
Vector2 Reflect(const ::Vector2 &normal) const
Calculate reflected vector to normal.
Definition: Vector2.hpp:258
+
raylib::Vector2::operator/=
Vector2 & operator/=(const float div)
Divide vector by value.
Definition: Vector2.hpp:199
+
raylib::Vector2::Multiply
Vector2 Multiply(const ::Vector2 &vector2) const
Multiply vector by vector.
Definition: Vector2.hpp:116
raylib::Vector2::operator+
Vector2 operator+(const ::Vector2 &vector2) const
Add two vectors (v1 + v2)
Definition: Vector2.hpp:63
-
raylib::Vector2::Divide
Vector2 Divide(const float div) const
Divide vector by value.
Definition: Vector2.hpp:185
+
raylib::Vector2::operator/
Vector2 operator/(const ::Vector2 &vector2) const
Divide vector by vector.
Definition: Vector2.hpp:169
+
raylib::Vector2::operator==
bool operator==(const ::Vector2 &other)
Determine whether or not the vectors are equal.
Definition: Vector2.hpp:40
+
raylib::Vector2::operator/=
Vector2 & operator/=(const ::Vector2 &vector2)
Divide vector by vector.
Definition: Vector2.hpp:176
+
raylib::Vector2::Negate
Vector2 Negate() const
Negate vector.
Definition: Vector2.hpp:102
+
raylib::Vector2::Scale
Vector2 Scale(const float scale) const
Scale vector (multiply by value)
Definition: Vector2.hpp:139
+
raylib::Vector2::Add
Vector2 Add(const ::Vector2 &vector2) const
Add two vectors (v1 + v2)
Definition: Vector2.hpp:56
+
raylib::Vector2::operator*
Vector2 operator*(const ::Vector2 &vector2) const
Multiply vector by vector.
Definition: Vector2.hpp:123
+
raylib::Vector2::operator/
Vector2 operator/(const float div) const
Divide vector by value.
Definition: Vector2.hpp:192
+
raylib::Vector2::operator+=
Vector2 & operator+=(const ::Vector2 &vector2)
Add two vectors (v1 + v2)
Definition: Vector2.hpp:70
+
raylib::Vector2::DrawCircle
Vector2 & DrawCircle(float radius, ::Color color)
Draw a color-filled circle (Vector version)
Definition: Vector2.hpp:326
raylib::Vector2::CheckCollisionLines
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...
Definition: Vector2.hpp:379
+
raylib::Vector2::One
static Vector2 One()
Vector with components value 1.0f.
Definition: Vector2.hpp:286
+
raylib::Vector2::operator!=
bool operator!=(const ::Vector2 &other)
Determines if the vectors are not equal.
Definition: Vector2.hpp:48
+
raylib::Vector2::Normalize
Vector2 Normalize() const
Normalize provided vector.
Definition: Vector2.hpp:223
+
raylib::Vector2::operator-
Vector2 operator-() const
Negate vector.
Definition: Vector2.hpp:109
+
raylib::Vector2::operator-
Vector2 operator-(const ::Vector2 &vector2) const
Subtract two vectors (v1 - v2)
Definition: Vector2.hpp:86
+
raylib::Vector2::Angle
float Angle(const ::Vector2 &vector2) const
Calculate angle from two vectors in X-axis.
Definition: Vector2.hpp:237
+
raylib::Vector2::Divide
Vector2 Divide(const float div) const
Divide vector by value.
Definition: Vector2.hpp:185
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_vector3_8hpp_source.html b/docs/_vector3_8hpp_source.html index 87634f3..b9a415f 100644 --- a/docs/_vector3_8hpp_source.html +++ b/docs/_vector3_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Vector3.hpp Source File @@ -32,10 +32,10 @@ - + @@ -99,9 +99,9 @@ $(function() {
28  set(ColorToHSV(color));
29  }
30 
-
31  GETTERSETTER(float, X, x)
-
32  GETTERSETTER(float, Y, y)
-
33  GETTERSETTER(float, Z, z)
+
31  GETTERSETTER(float, X, x)
+
32  GETTERSETTER(float, Y, y)
+
33  GETTERSETTER(float, Z, z)
34 
35  Vector3& operator=(const ::Vector3& vector3) {
36  set(vector3);
@@ -119,7 +119,6 @@ $(function() {
48  }
49 
50 #ifndef RAYLIB_CPP_NO_MATH
-
51 
54  inline Vector3 Add(const ::Vector3& vector3) {
55  return Vector3Add(*this, vector3);
56  }
@@ -374,37 +373,36 @@ $(function() {
362  }
363 };
364 } // namespace raylib
-
365 
-
366 #endif // RAYLIB_CPP_INCLUDE_VECTOR3_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Vector3::operator*
Vector3 operator*(const ::Vector3 &vector3) const
Multiply vector by vector.
Definition: Vector3.hpp:115
-
raylib::Vector3::Divide
Vector3 Divide(const ::Vector3 &vector3) const
Divide vector by vector.
Definition: Vector3.hpp:154
-
raylib::Vector3::operator/
Vector3 operator/(const float div) const
Divide a vector by a value.
Definition: Vector3.hpp:186
-
raylib::Vector3::Multiply
Vector3 Multiply(const ::Vector3 &vector3) const
Multiply vector by vector.
Definition: Vector3.hpp:108
-
raylib::Vector3::operator*
Vector3 operator*(const float scaler) const
Multiply vector by scalar.
Definition: Vector3.hpp:138
-
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
-
raylib::Vector3::operator*=
Vector3 & operator*=(const ::Vector3 &vector3)
Multiply vector by vector.
Definition: Vector3.hpp:122
-
raylib::Vector3::operator-
Vector3 operator-(const ::Vector3 &vector3)
Subtract two vectors.
Definition: Vector3.hpp:81
-
raylib::Vector3::Length
float Length() const
Calculate vector length.
Definition: Vector3.hpp:204
+
365 using RVector3 = raylib::Vector3;
+
366 
+
367 #endif // RAYLIB_CPP_INCLUDE_VECTOR3_HPP_
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
+
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
+
raylib::Vector3::operator/
Vector3 operator/(const ::Vector3 &vector3) const
Divide vector by vector.
Definition: Vector3.hpp:161
+
raylib::Vector3::operator*
Vector3 operator*(const ::Vector3 &vector3) const
Multiply vector by vector.
Definition: Vector3.hpp:115
+
raylib::Vector3::operator/=
Vector3 & operator/=(const ::Vector3 &vector3)
Divide vector by vector.
Definition: Vector3.hpp:168
+
raylib::Vector3::operator*=
Vector3 & operator*=(const ::Vector3 &vector3)
Multiply vector by vector.
Definition: Vector3.hpp:122
+
raylib::Vector3::operator/
Vector3 operator/(const float div) const
Divide a vector by a value.
Definition: Vector3.hpp:186
+
raylib::Vector3::operator+
Vector3 operator+(const ::Vector3 &vector3)
Add two vectors.
Definition: Vector3.hpp:61
+
raylib::Vector3::Negate
Vector3 Negate()
Negate provided vector (invert direction)
Definition: Vector3.hpp:94
+
raylib::Vector3::Add
Vector3 Add(const ::Vector3 &vector3)
Add two vectors.
Definition: Vector3.hpp:54
raylib::Vector3::CheckCollision
bool CheckCollision(float radius1, const ::Vector3 &center2, float radius2)
Detect collision between two spheres.
Definition: Vector3.hpp:353
raylib::Vector3::Scale
Vector3 Scale(const float scaler) const
Multiply vector by scalar.
Definition: Vector3.hpp:131
-
raylib::Vector3::operator*=
Vector3 & operator*=(const float scaler)
Multiply vector by scalar.
Definition: Vector3.hpp:145
-
raylib::Vector3::Negate
Vector3 Negate()
Negate provided vector (invert direction)
Definition: Vector3.hpp:94
-
raylib::Vector3::Subtract
Vector3 Subtract(const ::Vector3 &vector3)
Subtract two vectors.
Definition: Vector3.hpp:74
-
raylib::Vector3::Divide
Vector3 Divide(const float div) const
Divide a vector by a value.
Definition: Vector3.hpp:179
-
raylib::Vector3::operator/
Vector3 operator/(const ::Vector3 &vector3) const
Divide vector by vector.
Definition: Vector3.hpp:161
-
raylib::Vector3::operator/=
Vector3 & operator/=(const float div)
Divide a vector by a value.
Definition: Vector3.hpp:193
-
raylib::Vector3::operator+
Vector3 operator+(const ::Vector3 &vector3)
Add two vectors.
Definition: Vector3.hpp:61
-
raylib::Vector3::operator/=
Vector3 & operator/=(const ::Vector3 &vector3)
Divide vector by vector.
Definition: Vector3.hpp:168
+
raylib::Vector3::operator-
Vector3 operator-(const ::Vector3 &vector3)
Subtract two vectors.
Definition: Vector3.hpp:81
+
raylib::Vector3::Length
float Length() const
Calculate vector length.
Definition: Vector3.hpp:204
+
raylib::Vector3::Divide
Vector3 Divide(const ::Vector3 &vector3) const
Divide vector by vector.
Definition: Vector3.hpp:154
raylib::Vector3::operator-
Vector3 operator-()
Negate provided vector (invert direction)
Definition: Vector3.hpp:101
-
raylib::Vector3::Add
Vector3 Add(const ::Vector3 &vector3)
Add two vectors.
Definition: Vector3.hpp:54
+
raylib::Vector3::Divide
Vector3 Divide(const float div) const
Divide a vector by a value.
Definition: Vector3.hpp:179
+
raylib::Vector3::operator/=
Vector3 & operator/=(const float div)
Divide a vector by a value.
Definition: Vector3.hpp:193
+
raylib::Vector3::operator*=
Vector3 & operator*=(const float scaler)
Multiply vector by scalar.
Definition: Vector3.hpp:145
+
raylib::Vector3::Multiply
Vector3 Multiply(const ::Vector3 &vector3) const
Multiply vector by vector.
Definition: Vector3.hpp:108
+
raylib::Vector3::Subtract
Vector3 Subtract(const ::Vector3 &vector3)
Subtract two vectors.
Definition: Vector3.hpp:74
+
raylib::Vector3::operator*
Vector3 operator*(const float scaler) const
Multiply vector by scalar.
Definition: Vector3.hpp:138
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_vector4_8hpp_source.html b/docs/_vector4_8hpp_source.html index 35c8a09..206717d 100644 --- a/docs/_vector4_8hpp_source.html +++ b/docs/_vector4_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Vector4.hpp Source File @@ -32,10 +32,10 @@ - + @@ -102,10 +102,10 @@ $(function() {
31  set(ColorNormalize(color));
32  }
33 
-
34  GETTERSETTER(float, X, x)
-
35  GETTERSETTER(float, Y, y)
-
36  GETTERSETTER(float, Z, z)
-
37  GETTERSETTER(float, W, w)
+
34  GETTERSETTER(float, X, x)
+
35  GETTERSETTER(float, Y, y)
+
36  GETTERSETTER(float, Z, z)
+
37  GETTERSETTER(float, W, w)
38 
39  Vector4& operator=(const ::Vector4& vector4) {
40  set(vector4);
@@ -233,20 +233,20 @@ $(function() {
165 // Alias the Vector4 as Quaternion.
166 typedef Vector4 Quaternion;
167 } // namespace raylib
-
168 
-
169 #endif // RAYLIB_CPP_INCLUDE_VECTOR4_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Vector4::ToAxisAngle
std::pair< Vector3, float > ToAxisAngle()
Get the rotation angle and axis for a given quaternion.
Definition: Vector4.hpp:107
-
raylib::Vector4
Vector4 type.
Definition: Vector4.hpp:17
-
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
-
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
+
168 using RVector4 = raylib::Vector4;
+
169 using RQuaternion = raylib::Quaternion;
+
170 
+
171 #endif // RAYLIB_CPP_INCLUDE_VECTOR4_HPP_
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
+
raylib::Rectangle
Rectangle type.
Definition: Rectangle.hpp:12
+
raylib::Vector3
Vector3 type.
Definition: Vector3.hpp:16
+
raylib::Vector4
Vector4 type.
Definition: Vector4.hpp:17
+
raylib::Vector4::ToAxisAngle
std::pair< Vector3, float > ToAxisAngle()
Get the rotation angle and axis for a given quaternion.
Definition: Vector4.hpp:107
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_vr_stereo_config_8hpp_source.html b/docs/_vr_stereo_config_8hpp_source.html index 5dd9a56..f875a95 100644 --- a/docs/_vr_stereo_config_8hpp_source.html +++ b/docs/_vr_stereo_config_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: VrStereoConfig.hpp Source File @@ -32,10 +32,10 @@ - + @@ -128,21 +128,20 @@ $(function() {
72  }
73 };
74 } // namespace raylib
-
75 
-
76 #endif // RAYLIB_CPP_INCLUDE_VRSTEREOCONFIG_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::VrStereoConfig::Init
void Init(const ::VrDeviceInfo &info)
Load VR stereo config for VR simulator device parameters.
Definition: VrStereoConfig.hpp:20
-
raylib::VrStereoConfig::Unload
void Unload()
Unload VR stereo config.
Definition: VrStereoConfig.hpp:50
-
raylib::VrStereoConfig::BeginMode
VrStereoConfig & BeginMode()
Begin stereo rendering.
Definition: VrStereoConfig.hpp:34
+
75 using RVrStereoConfig = raylib::VrStereoConfig;
+
76 
+
77 #endif // RAYLIB_CPP_INCLUDE_VRSTEREOCONFIG_HPP_
raylib::VrStereoConfig
VR stereo config functions for VR simulator.
Definition: VrStereoConfig.hpp:11
raylib::VrStereoConfig::EndDrawing
VrStereoConfig & EndDrawing()
End stereo rendering.
Definition: VrStereoConfig.hpp:42
+
raylib::VrStereoConfig::Init
void Init(const ::VrDeviceInfo &info)
Load VR stereo config for VR simulator device parameters.
Definition: VrStereoConfig.hpp:20
+
raylib::VrStereoConfig::BeginMode
VrStereoConfig & BeginMode()
Begin stereo rendering.
Definition: VrStereoConfig.hpp:34
+
raylib::VrStereoConfig::Unload
void Unload()
Unload VR stereo config.
Definition: VrStereoConfig.hpp:50
raylib::VrStereoConfig::~VrStereoConfig
~VrStereoConfig()
Unload VR stereo config.
Definition: VrStereoConfig.hpp:27
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_wave_8hpp_source.html b/docs/_wave_8hpp_source.html index 9e40e49..dec8416 100644 --- a/docs/_wave_8hpp_source.html +++ b/docs/_wave_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Wave.hpp Source File @@ -32,10 +32,10 @@ - + @@ -127,11 +127,11 @@ $(function() {
65  Unload();
66  }
67 
-
68  GETTERSETTER(unsigned int, FrameCount, frameCount)
-
69  GETTERSETTER(unsigned int, SampleRate, sampleRate)
-
70  GETTERSETTER(unsigned int, SampleSize, sampleSize)
-
71  GETTERSETTER(unsigned int, Channels, channels)
-
72  GETTERSETTER(void *, Data, data)
+
68  GETTERSETTER(unsigned int, FrameCount, frameCount)
+
69  GETTERSETTER(unsigned int, SampleRate, sampleRate)
+
70  GETTERSETTER(unsigned int, SampleSize, sampleSize)
+
71  GETTERSETTER(unsigned int, Channels, channels)
+
72  GETTERSETTER(void *, Data, data)
73 
74  Wave& operator=(const ::Wave& wave) {
75  set(wave);
@@ -238,32 +238,31 @@ $(function() {
221 };
222 
223 } // namespace raylib
-
224 
-
225 #endif // RAYLIB_CPP_INCLUDE_WAVE_HPP_
- -
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Wave::Load
bool Load(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load wave from memory buffer, fileType refers to extension: i.e.
Definition: Wave.hpp:199
-
raylib::Wave
Wave type, defines audio wave data.
Definition: Wave.hpp:14
-
raylib::Wave::Crop
Wave & Crop(int initSample, int finalSample)
Crop a wave to defined samples range.
Definition: Wave.hpp:125
-
raylib::Wave::Unload
void Unload()
Unload wave data.
Definition: Wave.hpp:163
-
raylib::Wave::LoadSamples
float * LoadSamples()
Load samples data from wave as a floats array.
Definition: Wave.hpp:133
-
raylib::Wave::Load
bool Load(const std::string &fileName)
Load wave data from file.
Definition: Wave.hpp:189
-
raylib::Wave::Export
bool Export(const std::string &fileName)
Export wave data to file, returns true on success.
Definition: Wave.hpp:147
-
raylib::Wave::~Wave
~Wave()
Unload wave data.
Definition: Wave.hpp:64
-
raylib::Wave::Wave
Wave(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load wave from memory buffer, fileType refers to extension: i.e.
Definition: Wave.hpp:41
-
raylib::Wave::Copy
inline ::Wave Copy() const
Copy a wave to a new wave.
Definition: Wave.hpp:118
-
raylib::Wave::Wave
Wave(const std::string &fileName)
Load wave data from file.
Definition: Wave.hpp:32
-
raylib::Wave::ExportAsCode
bool ExportAsCode(const std::string &fileName)
Export wave sample data to code (.h), returns true on success.
Definition: Wave.hpp:155
-
raylib::Wave::UnloadSamples
void UnloadSamples(float *samples)
Unload samples data loaded with LoadWaveSamples()
Definition: Wave.hpp:140
-
raylib::Wave::IsReady
bool IsReady() const
Retrieve whether or not the Wave data has been loaded.
Definition: Wave.hpp:209
-
raylib::Wave::Format
Wave & Format(int SampleRate, int SampleSize, int Channels=2)
Convert wave data to desired format.
Definition: Wave.hpp:110
+
224 using RWave = raylib::Wave;
+
225 
+
226 #endif // RAYLIB_CPP_INCLUDE_WAVE_HPP_
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
+
raylib::Wave
Wave type, defines audio wave data.
Definition: Wave.hpp:14
+
raylib::Wave::Load
bool Load(const std::string &fileName)
Load wave data from file.
Definition: Wave.hpp:189
+
raylib::Wave::Crop
Wave & Crop(int initSample, int finalSample)
Crop a wave to defined samples range.
Definition: Wave.hpp:125
+
raylib::Wave::Copy
inline ::Wave Copy() const
Copy a wave to a new wave.
Definition: Wave.hpp:118
+
raylib::Wave::Wave
Wave(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load wave from memory buffer, fileType refers to extension: i.e.
Definition: Wave.hpp:41
+
raylib::Wave::ExportAsCode
bool ExportAsCode(const std::string &fileName)
Export wave sample data to code (.h), returns true on success.
Definition: Wave.hpp:155
+
raylib::Wave::Format
Wave & Format(int SampleRate, int SampleSize, int Channels=2)
Convert wave data to desired format.
Definition: Wave.hpp:110
+
raylib::Wave::~Wave
~Wave()
Unload wave data.
Definition: Wave.hpp:64
+
raylib::Wave::Unload
void Unload()
Unload wave data.
Definition: Wave.hpp:163
raylib::Wave::LoadSound
inline ::Sound LoadSound()
Load sound from wave data.
Definition: Wave.hpp:173
+
raylib::Wave::IsReady
bool IsReady() const
Retrieve whether or not the Wave data has been loaded.
Definition: Wave.hpp:209
+
raylib::Wave::Export
bool Export(const std::string &fileName)
Export wave data to file, returns true on success.
Definition: Wave.hpp:147
+
raylib::Wave::LoadSamples
float * LoadSamples()
Load samples data from wave as a floats array.
Definition: Wave.hpp:133
+
raylib::Wave::Wave
Wave(const std::string &fileName)
Load wave data from file.
Definition: Wave.hpp:32
+
raylib::Wave::UnloadSamples
void UnloadSamples(float *samples)
Unload samples data loaded with LoadWaveSamples()
Definition: Wave.hpp:140
+
raylib::Wave::Load
bool Load(const std::string &fileType, const unsigned char *fileData, int dataSize)
Load wave from memory buffer, fileType refers to extension: i.e.
Definition: Wave.hpp:199
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+ diff --git a/docs/_window_8hpp_source.html b/docs/_window_8hpp_source.html index 40f87d8..6fd06cf 100644 --- a/docs/_window_8hpp_source.html +++ b/docs/_window_8hpp_source.html @@ -3,7 +3,7 @@ - + raylib-cpp: Window.hpp Source File @@ -32,10 +32,10 @@ - + @@ -83,22 +83,23 @@ $(function() {
9 namespace raylib {
13 class Window {
14  public:
-
20  Window(int width = 800, int height = 450, const std::string& title = "raylib",
-
21  bool lateInit = false) {
-
22  if (!lateInit) {
-
23  if (!Init(width, height, title)) {
-
24  throw RaylibException("Failed to create Window");
-
25  }
-
26  }
-
27  }
-
28 
-
32  ~Window() {
-
33  Close();
-
34  }
-
35 
-
41  bool Init(int width = 800, int height = 450, const std::string& title = "raylib") {
-
42  ::InitWindow(width, height, title.c_str());
-
43  return IsWindowReady();
+
15  Window() {
+
16  // need to create it manually with Init().
+
17  }
+
18 
+
22  Window(int width, int height, const std::string& title) {
+
23  Init(width, height, title);
+
24  }
+
25 
+
29  ~Window() {
+
30  Close();
+
31  }
+
32 
+
39  void Init(int width = 800, int height = 450, const std::string& title = "raylib") {
+
40  ::InitWindow(width, height, title.c_str());
+
41  if (!IsWindowReady()) {
+
42  throw RaylibException("Failed to create Window");
+
43  }
44  }
45 
49  inline bool ShouldClose() const {
@@ -294,64 +295,63 @@ $(function() {
359  }
360 };
361 } // namespace raylib
-
362 
-
363 #endif // RAYLIB_CPP_INCLUDE_WINDOW_HPP_
- -
raylib::Window::GetWidth
int GetWidth() const
Get current screen width.
Definition: Window.hpp:299
-
raylib::Window::GetHandle
void * GetHandle() const
Get native window handle.
Definition: Window.hpp:276
-
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
-
raylib::Window::SetMonitor
Window & SetMonitor(int monitor)
Set monitor for the current window.
Definition: Window.hpp:230
-
raylib::Window::GetTime
double GetTime() const
Returns elapsed time in seconds since InitWindow()
Definition: Window.hpp:357
-
raylib::Window::~Window
~Window()
Close window and unload OpenGL context.
Definition: Window.hpp:32
-
raylib::Window::IsHidden
bool IsHidden() const
Check if window is currently hidden.
Definition: Window.hpp:84
-
raylib::SetWindowTitle
static void SetWindowTitle(const std::string &title)
Set title for window.
Definition: Functions.hpp:31
-
raylib::Window::Close
void Close()
Close window and unload OpenGL context.
Definition: Window.hpp:56
-
raylib::Window::ClearBackground
Window & ClearBackground(const ::Color &color=BLACK)
Clear window with given color.
Definition: Window.hpp:142
-
raylib::Window::SetMinSize
Window & SetMinSize(int width, int height)
Set window minimum dimensions.
Definition: Window.hpp:238
-
raylib::Window::SetState
Window & SetState(unsigned int flag)
Set window configuration state using flags.
Definition: Window.hpp:126
-
raylib::Window::GetFrameTime
float GetFrameTime() const
Returns time in seconds for last frame drawn.
Definition: Window.hpp:350
-
raylib::Window::ShouldClose
bool ShouldClose() const
Check if KEY_ESCAPE pressed or Close icon pressed.
Definition: Window.hpp:49
-
raylib::InitWindow
static void InitWindow(int width, int height, const std::string &title="raylib")
Initialize window and OpenGL context.
Definition: Functions.hpp:24
-
raylib::Window::SetFullscreen
Window & SetFullscreen(bool fullscreen)
Set whether or not the application should be fullscreen.
Definition: Window.hpp:158
-
raylib::Window::SetPosition
Window & SetPosition(int x, int y)
Set window position on screen.
Definition: Window.hpp:215
-
raylib::Window::SetSize
Window & SetSize(const ::Vector2 &size)
Set window dimensions.
Definition: Window.hpp:262
-
raylib::Window::IsMaximized
bool IsMaximized() const
Check if window is currently minimized.
Definition: Window.hpp:98
-
raylib::Window::GetScaleDPI
inline ::Vector2 GetScaleDPI() const
Get window scale DPI factor.
Definition: Window.hpp:320
-
raylib::Window::Window
Window(int width=800, int height=450, const std::string &title="raylib", bool lateInit=false)
Initialize window and OpenGL context.
Definition: Window.hpp:20
-
raylib::Window::IsFocused
bool IsFocused() const
Check if window is currently focused.
Definition: Window.hpp:105
-
raylib::Window::IsResized
bool IsResized() const
Check if window has been resized last frame.
Definition: Window.hpp:112
-
raylib::Window::GetHeight
int GetHeight() const
Get current screen height.
Definition: Window.hpp:306
-
raylib::Window::Init
bool Init(int width=800, int height=450, const std::string &title="raylib")
Initializes the window.
Definition: Window.hpp:41
-
raylib::Window::EndDrawing
Window & EndDrawing()
End canvas drawing and swap buffers (double buffering)
Definition: Window.hpp:291
-
raylib::Window::SetSize
Window & SetSize(int width, int height)
Set window dimensions.
Definition: Window.hpp:254
-
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
-
raylib::Window::GetFPS
int GetFPS() const
Returns current FPS.
Definition: Window.hpp:335
-
raylib::Window::Minimize
Window & Minimize()
Set window state: minimized, if resizable (only PLATFORM_DESKTOP)
Definition: Window.hpp:183
-
raylib::Window::ToggleFullscreen
Window & ToggleFullscreen()
Toggle window state: fullscreen/windowed.
Definition: Window.hpp:150
-
raylib::Window::Maximize
Window & Maximize()
Set window state: maximized, if resizable (only PLATFORM_DESKTOP)
Definition: Window.hpp:175
-
raylib::Window::SetMinSize
Window & SetMinSize(const ::Vector2 &size)
Set window minimum dimensions.
Definition: Window.hpp:246
-
raylib::Window::SetTitle
Window & SetTitle(const std::string &title)
Set title for window.
Definition: Window.hpp:207
-
raylib::Window::IsCursorOnScreen
bool IsCursorOnScreen() const
Check if cursor is on the current screen.
Definition: Window.hpp:63
-
raylib::Window::IsFullscreen
bool IsFullscreen() const
Check if window is currently fullscreen.
Definition: Window.hpp:77
-
raylib::Window::IsReady
static bool IsReady()
Check if window has been initialized successfully.
Definition: Window.hpp:70
-
raylib::Window::BeginDrawing
Window & BeginDrawing()
Setup canvas (framebuffer) to start drawing.
Definition: Window.hpp:283
-
raylib::Window::ClearState
Window & ClearState(unsigned int flag)
Clear window configuration state flags.
Definition: Window.hpp:134
-
raylib::Window::DrawFPS
Window & DrawFPS(int posX=10, int posY=10)
Draw current FPS.
Definition: Window.hpp:342
-
raylib::Window::GetSize
Vector2 GetSize() const
Get the screen's width and height.
Definition: Window.hpp:269
-
raylib::Window::IsState
bool IsState(unsigned int flag) const
Check if one specific window flag is enabled.
Definition: Window.hpp:119
-
raylib::Window::SetPosition
Window & SetPosition(const ::Vector2 &position)
Set window position on screen.
Definition: Window.hpp:223
+
362 using RWindow = raylib::Window;
+
363 
+
364 #endif // RAYLIB_CPP_INCLUDE_WINDOW_HPP_
raylib::RaylibException
Exception used for most raylib-related exceptions.
Definition: RaylibException.hpp:13
-
raylib::Window::SetTargetFPS
Window & SetTargetFPS(int fps)
Set target FPS (maximum)
Definition: Window.hpp:327
-
raylib::Window::GetPosition
inline ::Vector2 GetPosition() const
Get window position XY on monitor.
Definition: Window.hpp:313
-
raylib::Window::IsMinimized
bool IsMinimized() const
Check if window is currently minimized.
Definition: Window.hpp:91
-
raylib::Window::Restore
Window & Restore()
Set window state: not minimized/maximized (only PLATFORM_DESKTOP)
Definition: Window.hpp:191
-
raylib::Window::SetIcon
Window & SetIcon(const ::Image &image)
Set icon for window.
Definition: Window.hpp:199
+
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
raylib::Window
Window and Graphics Device Functions.
Definition: Window.hpp:13
+
raylib::Window::GetHeight
int GetHeight() const
Get current screen height.
Definition: Window.hpp:306
+
raylib::Window::GetHandle
void * GetHandle() const
Get native window handle.
Definition: Window.hpp:276
+
raylib::Window::Minimize
Window & Minimize()
Set window state: minimized, if resizable (only PLATFORM_DESKTOP)
Definition: Window.hpp:183
+
raylib::Window::SetTargetFPS
Window & SetTargetFPS(int fps)
Set target FPS (maximum)
Definition: Window.hpp:327
+
raylib::Window::GetWidth
int GetWidth() const
Get current screen width.
Definition: Window.hpp:299
+
raylib::Window::SetTitle
Window & SetTitle(const std::string &title)
Set title for window.
Definition: Window.hpp:207
+
raylib::Window::ClearState
Window & ClearState(unsigned int flag)
Clear window configuration state flags.
Definition: Window.hpp:134
+
raylib::Window::GetPosition
inline ::Vector2 GetPosition() const
Get window position XY on monitor.
Definition: Window.hpp:313
+
raylib::Window::DrawFPS
Window & DrawFPS(int posX=10, int posY=10)
Draw current FPS.
Definition: Window.hpp:342
+
raylib::Window::EndDrawing
Window & EndDrawing()
End canvas drawing and swap buffers (double buffering)
Definition: Window.hpp:291
+
raylib::Window::ToggleFullscreen
Window & ToggleFullscreen()
Toggle window state: fullscreen/windowed.
Definition: Window.hpp:150
+
raylib::Window::SetIcon
Window & SetIcon(const ::Image &image)
Set icon for window.
Definition: Window.hpp:199
+
raylib::Window::SetSize
Window & SetSize(const ::Vector2 &size)
Set window dimensions.
Definition: Window.hpp:262
+
raylib::Window::IsFullscreen
bool IsFullscreen() const
Check if window is currently fullscreen.
Definition: Window.hpp:77
+
raylib::Window::Close
void Close()
Close window and unload OpenGL context.
Definition: Window.hpp:56
+
raylib::Window::IsState
bool IsState(unsigned int flag) const
Check if one specific window flag is enabled.
Definition: Window.hpp:119
+
raylib::Window::ShouldClose
bool ShouldClose() const
Check if KEY_ESCAPE pressed or Close icon pressed.
Definition: Window.hpp:49
+
raylib::Window::~Window
~Window()
Close window and unload OpenGL context.
Definition: Window.hpp:29
+
raylib::Window::GetTime
double GetTime() const
Returns elapsed time in seconds since InitWindow()
Definition: Window.hpp:357
+
raylib::Window::SetPosition
Window & SetPosition(int x, int y)
Set window position on screen.
Definition: Window.hpp:215
+
raylib::Window::SetMonitor
Window & SetMonitor(int monitor)
Set monitor for the current window.
Definition: Window.hpp:230
+
raylib::Window::ClearBackground
Window & ClearBackground(const ::Color &color=BLACK)
Clear window with given color.
Definition: Window.hpp:142
+
raylib::Window::Window
Window(int width, int height, const std::string &title)
Initialize window and OpenGL context.
Definition: Window.hpp:22
+
raylib::Window::SetPosition
Window & SetPosition(const ::Vector2 &position)
Set window position on screen.
Definition: Window.hpp:223
+
raylib::Window::GetFPS
int GetFPS() const
Returns current FPS.
Definition: Window.hpp:335
+
raylib::Window::BeginDrawing
Window & BeginDrawing()
Setup canvas (framebuffer) to start drawing.
Definition: Window.hpp:283
+
raylib::Window::SetState
Window & SetState(unsigned int flag)
Set window configuration state using flags.
Definition: Window.hpp:126
+
raylib::Window::Init
void Init(int width=800, int height=450, const std::string &title="raylib")
Initializes the window.
Definition: Window.hpp:39
+
raylib::Window::Restore
Window & Restore()
Set window state: not minimized/maximized (only PLATFORM_DESKTOP)
Definition: Window.hpp:191
+
raylib::Window::IsReady
static bool IsReady()
Check if window has been initialized successfully.
Definition: Window.hpp:70
+
raylib::Window::SetSize
Window & SetSize(int width, int height)
Set window dimensions.
Definition: Window.hpp:254
+
raylib::Window::GetFrameTime
float GetFrameTime() const
Returns time in seconds for last frame drawn.
Definition: Window.hpp:350
+
raylib::Window::IsCursorOnScreen
bool IsCursorOnScreen() const
Check if cursor is on the current screen.
Definition: Window.hpp:63
+
raylib::Window::GetSize
Vector2 GetSize() const
Get the screen's width and height.
Definition: Window.hpp:269
+
raylib::Window::IsHidden
bool IsHidden() const
Check if window is currently hidden.
Definition: Window.hpp:84
+
raylib::Window::GetScaleDPI
inline ::Vector2 GetScaleDPI() const
Get window scale DPI factor.
Definition: Window.hpp:320
+
raylib::Window::IsResized
bool IsResized() const
Check if window has been resized last frame.
Definition: Window.hpp:112
+
raylib::Window::SetMinSize
Window & SetMinSize(int width, int height)
Set window minimum dimensions.
Definition: Window.hpp:238
+
raylib::Window::SetMinSize
Window & SetMinSize(const ::Vector2 &size)
Set window minimum dimensions.
Definition: Window.hpp:246
+
raylib::Window::IsFocused
bool IsFocused() const
Check if window is currently focused.
Definition: Window.hpp:105
+
raylib::Window::IsMaximized
bool IsMaximized() const
Check if window is currently minimized.
Definition: Window.hpp:98
+
raylib::Window::SetFullscreen
Window & SetFullscreen(bool fullscreen)
Set whether or not the application should be fullscreen.
Definition: Window.hpp:158
+
raylib::Window::Maximize
Window & Maximize()
Set window state: maximized, if resizable (only PLATFORM_DESKTOP)
Definition: Window.hpp:175
+
raylib::Window::IsMinimized
bool IsMinimized() const
Check if window is currently minimized.
Definition: Window.hpp:91
+
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:8
+
raylib::SetWindowTitle
static void SetWindowTitle(const std::string &title)
Set title for window.
Definition: Functions.hpp:31
+
raylib::InitWindow
static void InitWindow(int width, int height, const std::string &title="raylib")
Initialize window and OpenGL context.
Definition: Functions.hpp:24
+ diff --git a/docs/annotated.html b/docs/annotated.html index 8ca7eb0..4d43ac4 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class List @@ -32,10 +32,10 @@ - + @@ -108,9 +108,7 @@ $(function() { diff --git a/docs/classes.html b/docs/classes.html index ec7a252..fc86214 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Index @@ -32,10 +32,10 @@ - + @@ -68,87 +68,52 @@ $(function() {
Class Index
-
a | b | c | f | g | i | m | p | r | s | t | v | w
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  a  
-
  f  
-
Matrix (raylib)   RayCollision (raylib)   
  v  
-
Mesh (raylib)   RaylibException (raylib)   
AudioDevice (raylib)   Font (raylib)   Model (raylib)   Rectangle (raylib)   Vector2 (raylib)   
AudioStream (raylib)   
  g  
-
ModelAnimation (raylib)   RenderTexture (raylib)   Vector3 (raylib)   
  b  
-
Mouse (raylib)   
  s  
-
Vector4 (raylib)   
Gamepad (raylib)   Music (raylib)   VrStereoConfig (raylib)   
BoundingBox (raylib)   
  i  
-
  p  
-
Shader (raylib)   
  w  
-
  c  
-
Sound (raylib)   
Image (raylib)   Physics (raylib)   
  t  
-
Wave (raylib)   
Camera2D (raylib)   
  m  
-
  r  
-
Window (raylib)   
Camera3D (raylib)   Text (raylib)   
Color (raylib)   Material (raylib)   Ray (raylib)   Texture (raylib)   
-
a | b | c | f | g | i | m | p | r | s | t | v | w
+
A | B | C | F | G | I | M | P | R | S | T | V | W
+
+
+
A
+
AudioDevice (raylib)
AudioStream (raylib)
+
+
B
+
BoundingBox (raylib)
+
+
C
+
Camera2D (raylib)
Camera3D (raylib)
Color (raylib)
+
+
F
+
Font (raylib)
+
+
G
+
Gamepad (raylib)
+
+
I
+
Image (raylib)
+
+
M
+
Material (raylib)
Matrix (raylib)
Mesh (raylib)
Model (raylib)
ModelAnimation (raylib)
Mouse (raylib)
Music (raylib)
+
+
P
+
Physics (raylib)
+
+
R
+
Ray (raylib)
RayCollision (raylib)
RaylibException (raylib)
Rectangle (raylib)
RenderTexture (raylib)
+
+
S
+
Shader (raylib)
Sound (raylib)
+
+
T
+
Text (raylib)
Texture (raylib)
+
+
V
+
Vector2 (raylib)
Vector3 (raylib)
Vector4 (raylib)
VrStereoConfig (raylib)
+
+
W
+
Wave (raylib)
Window (raylib)
+
diff --git a/docs/classraylib_1_1_audio_device-members.html b/docs/classraylib_1_1_audio_device-members.html index 4dd6f54..6742288 100644 --- a/docs/classraylib_1_1_audio_device-members.html +++ b/docs/classraylib_1_1_audio_device-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -84,9 +84,7 @@ $(function() { diff --git a/docs/classraylib_1_1_audio_device.html b/docs/classraylib_1_1_audio_device.html index 06fadf3..f8dab72 100644 --- a/docs/classraylib_1_1_audio_device.html +++ b/docs/classraylib_1_1_audio_device.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::AudioDevice Class Reference @@ -32,10 +32,10 @@ - + @@ -193,9 +193,7 @@ bool  diff --git a/docs/classraylib_1_1_audio_stream-members.html b/docs/classraylib_1_1_audio_stream-members.html index 6b2b091..dec396f 100644 --- a/docs/classraylib_1_1_audio_stream-members.html +++ b/docs/classraylib_1_1_audio_stream-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -108,9 +108,7 @@ $(function() { diff --git a/docs/classraylib_1_1_audio_stream.html b/docs/classraylib_1_1_audio_stream.html index be1d5a1..62c3c13 100644 --- a/docs/classraylib_1_1_audio_stream.html +++ b/docs/classraylib_1_1_audio_stream.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::AudioStream Class Reference @@ -32,10 +32,10 @@ - + @@ -563,9 +563,7 @@ static void  diff --git a/docs/classraylib_1_1_bounding_box-members.html b/docs/classraylib_1_1_bounding_box-members.html index 9193347..49d67c6 100644 --- a/docs/classraylib_1_1_bounding_box-members.html +++ b/docs/classraylib_1_1_bounding_box-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -75,26 +75,25 @@ $(function() {

This is the complete list of members for raylib::BoundingBox, including all inherited members.

- - - - - - - - - - - - - - + + + + + + + + + + + + + + +
BoundingBox(const ::BoundingBox &box) (defined in raylib::BoundingBox)raylib::BoundingBoxinline
BoundingBox(const ::Mesh &mesh)raylib::BoundingBoxinline
BoundingBox(::Vector3 minMax) (defined in raylib::BoundingBox)raylib::BoundingBoxinline
BoundingBox(::Vector3 min, ::Vector3 max) (defined in raylib::BoundingBox)raylib::BoundingBoxinline
CheckCollision(const ::BoundingBox &box2) constraylib::BoundingBoxinline
CheckCollision(::Vector3 center, float radius) constraylib::BoundingBoxinline
CheckCollision(const ::Ray &ray) constraylib::BoundingBoxinline
Draw(::Color color={255, 255, 255, 255})raylib::BoundingBoxinline
GetCollision(const ::Ray &ray) constraylib::BoundingBoxinline
GetMax() constraylib::BoundingBoxinline
GetMin() constraylib::BoundingBoxinline
operator=(const ::BoundingBox &box) (defined in raylib::BoundingBox)raylib::BoundingBoxinline
SetMax(::Vector3 value)raylib::BoundingBoxinline
SetMin(::Vector3 value)raylib::BoundingBoxinline
BoundingBox() (defined in raylib::BoundingBox)raylib::BoundingBoxinline
BoundingBox(const ::BoundingBox &box) (defined in raylib::BoundingBox)raylib::BoundingBoxinline
BoundingBox(const ::Mesh &mesh)raylib::BoundingBoxinline
BoundingBox(::Vector3 minMax) (defined in raylib::BoundingBox)raylib::BoundingBoxinline
BoundingBox(::Vector3 min, ::Vector3 max) (defined in raylib::BoundingBox)raylib::BoundingBoxinline
CheckCollision(const ::BoundingBox &box2) constraylib::BoundingBoxinline
CheckCollision(::Vector3 center, float radius) constraylib::BoundingBoxinline
CheckCollision(const ::Ray &ray) constraylib::BoundingBoxinline
Draw(::Color color={255, 255, 255, 255})raylib::BoundingBoxinline
GetCollision(const ::Ray &ray) constraylib::BoundingBoxinline
GetMax() constraylib::BoundingBoxinline
GetMin() constraylib::BoundingBoxinline
operator=(const ::BoundingBox &box) (defined in raylib::BoundingBox)raylib::BoundingBoxinline
SetMax(::Vector3 value)raylib::BoundingBoxinline
SetMin(::Vector3 value)raylib::BoundingBoxinline
diff --git a/docs/classraylib_1_1_bounding_box.html b/docs/classraylib_1_1_bounding_box.html index 0694ad7..709a320 100644 --- a/docs/classraylib_1_1_bounding_box.html +++ b/docs/classraylib_1_1_bounding_box.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::BoundingBox Class Reference @@ -32,10 +32,10 @@ - + @@ -161,7 +161,7 @@ bool 
Returns
The max value of the object.
-

Definition at line 28 of file BoundingBox.hpp.

+

Definition at line 38 of file BoundingBox.hpp.

@@ -191,7 +191,7 @@ bool 
Returns
The min value of the object.
-

Definition at line 27 of file BoundingBox.hpp.

+

Definition at line 37 of file BoundingBox.hpp.

@@ -227,7 +227,7 @@ bool Definition at line 28 of file BoundingBox.hpp.

+

Definition at line 38 of file BoundingBox.hpp.

@@ -263,16 +263,14 @@ bool Definition at line 27 of file BoundingBox.hpp.

+

Definition at line 37 of file BoundingBox.hpp.

diff --git a/docs/classraylib_1_1_camera2_d-members.html b/docs/classraylib_1_1_camera2_d-members.html index 5bf3908..bd02d73 100644 --- a/docs/classraylib_1_1_camera2_d-members.html +++ b/docs/classraylib_1_1_camera2_d-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -95,9 +95,7 @@ $(function() { diff --git a/docs/classraylib_1_1_camera2_d.html b/docs/classraylib_1_1_camera2_d.html index 21618e2..93b3d6f 100644 --- a/docs/classraylib_1_1_camera2_d.html +++ b/docs/classraylib_1_1_camera2_d.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Camera2D Class Reference @@ -32,10 +32,10 @@ - + @@ -405,9 +405,7 @@ Public Member Functions diff --git a/docs/classraylib_1_1_camera3_d-members.html b/docs/classraylib_1_1_camera3_d-members.html index ebe016d..968c1bb 100644 --- a/docs/classraylib_1_1_camera3_d-members.html +++ b/docs/classraylib_1_1_camera3_d-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -104,9 +104,7 @@ $(function() { diff --git a/docs/classraylib_1_1_camera3_d.html b/docs/classraylib_1_1_camera3_d.html index ac61c3a..1de3129 100644 --- a/docs/classraylib_1_1_camera3_d.html +++ b/docs/classraylib_1_1_camera3_d.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Camera3D Class Reference @@ -32,10 +32,10 @@ - + @@ -576,9 +576,7 @@ Public Member Functions diff --git a/docs/classraylib_1_1_color-members.html b/docs/classraylib_1_1_color-members.html index 73a8ac7..8e308f4 100644 --- a/docs/classraylib_1_1_color-members.html +++ b/docs/classraylib_1_1_color-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -144,9 +144,7 @@ $(function() { diff --git a/docs/classraylib_1_1_color.html b/docs/classraylib_1_1_color.html index 6c05601..453c7a7 100644 --- a/docs/classraylib_1_1_color.html +++ b/docs/classraylib_1_1_color.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Color Class Reference @@ -32,10 +32,10 @@ - + @@ -571,9 +571,7 @@ static Color  diff --git a/docs/classraylib_1_1_font-members.html b/docs/classraylib_1_1_font-members.html index 4bb75f0..620c817 100644 --- a/docs/classraylib_1_1_font-members.html +++ b/docs/classraylib_1_1_font-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -114,9 +114,7 @@ $(function() { diff --git a/docs/classraylib_1_1_font.html b/docs/classraylib_1_1_font.html index 423a831..28c9030 100644 --- a/docs/classraylib_1_1_font.html +++ b/docs/classraylib_1_1_font.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Font Class Reference @@ -32,10 +32,10 @@ - + @@ -944,9 +944,7 @@ void Unload () diff --git a/docs/classraylib_1_1_gamepad-members.html b/docs/classraylib_1_1_gamepad-members.html index bd53321..4dda5c0 100644 --- a/docs/classraylib_1_1_gamepad-members.html +++ b/docs/classraylib_1_1_gamepad-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -96,9 +96,7 @@ $(function() { diff --git a/docs/classraylib_1_1_gamepad.html b/docs/classraylib_1_1_gamepad.html index 9283bf6..ea03850 100644 --- a/docs/classraylib_1_1_gamepad.html +++ b/docs/classraylib_1_1_gamepad.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Gamepad Class Reference @@ -32,10 +32,10 @@ - + @@ -229,9 +229,7 @@ int number diff --git a/docs/classraylib_1_1_image-members.html b/docs/classraylib_1_1_image-members.html index af95b9f..e34444e 100644 --- a/docs/classraylib_1_1_image-members.html +++ b/docs/classraylib_1_1_image-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -127,7 +127,7 @@ $(function() { GradientH(int width, int height, ::Color left, ::Color right)raylib::Imageinlinestatic GradientRadial(int width, int height, float density, ::Color inner, ::Color outer)raylib::Imageinlinestatic GradientV(int width, int height, ::Color top, ::Color bottom)raylib::Imageinlinestatic - Image(void *data=nullptr, int width=0, int height=0, int mipmaps=0, int format=0) (defined in raylib::Image)raylib::Imageinline + Image(void *data=nullptr, int width=0, int height=0, int mipmaps=1, int format=PIXELFORMAT_UNCOMPRESSED_R8G8B8A8) (defined in raylib::Image)raylib::Imageinline Image(const ::Image &image) (defined in raylib::Image)raylib::Imageinline Image(const std::string &fileName)raylib::Imageinline Image(const std::string &fileName, int width, int height, int format, int headerSize)raylib::Imageinline @@ -175,9 +175,7 @@ $(function() { diff --git a/docs/classraylib_1_1_image.html b/docs/classraylib_1_1_image.html index c921bdd..b76515a 100644 --- a/docs/classraylib_1_1_image.html +++ b/docs/classraylib_1_1_image.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Image Class Reference @@ -32,10 +32,10 @@ - + @@ -115,9 +115,9 @@ Public Member Functions  Image (int width, int height, ::Color color={255, 255, 255, 255})   - - Image (void *data=nullptr, int width=0, int height=0, int mipmaps=0, int format=0) -  + + Image (void *data=nullptr, int width=0, int height=0, int mipmaps=1, int format=PIXELFORMAT_UNCOMPRESSED_R8G8B8A8) +  Image & AlphaClear (::Color color, float threshold)  Clear alpha channel to desired color.
@@ -1481,9 +1481,7 @@ static int  diff --git a/docs/classraylib_1_1_material-members.html b/docs/classraylib_1_1_material-members.html index 69bc5db..f284e14 100644 --- a/docs/classraylib_1_1_material-members.html +++ b/docs/classraylib_1_1_material-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -95,9 +95,7 @@ $(function() { diff --git a/docs/classraylib_1_1_material.html b/docs/classraylib_1_1_material.html index 7e8a176..0f231b9 100644 --- a/docs/classraylib_1_1_material.html +++ b/docs/classraylib_1_1_material.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Material Class Reference @@ -32,10 +32,10 @@ - + @@ -280,9 +280,7 @@ static std::vector< Materi diff --git a/docs/classraylib_1_1_matrix-members.html b/docs/classraylib_1_1_matrix-members.html index 0917d1c..752352d 100644 --- a/docs/classraylib_1_1_matrix-members.html +++ b/docs/classraylib_1_1_matrix-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -141,9 +141,7 @@ $(function() { diff --git a/docs/classraylib_1_1_matrix.html b/docs/classraylib_1_1_matrix.html index 85201cc..221dd20 100644 --- a/docs/classraylib_1_1_matrix.html +++ b/docs/classraylib_1_1_matrix.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Matrix Class Reference @@ -32,10 +32,10 @@ - + @@ -1342,9 +1342,7 @@ static Matrix  diff --git a/docs/classraylib_1_1_mesh-members.html b/docs/classraylib_1_1_mesh-members.html index 75d1662..0431540 100644 --- a/docs/classraylib_1_1_mesh-members.html +++ b/docs/classraylib_1_1_mesh-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -138,9 +138,7 @@ $(function() { diff --git a/docs/classraylib_1_1_mesh.html b/docs/classraylib_1_1_mesh.html index b3d3cdb..5fe02ce 100644 --- a/docs/classraylib_1_1_mesh.html +++ b/docs/classraylib_1_1_mesh.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Mesh Class Reference @@ -32,10 +32,10 @@ - + @@ -1284,9 +1284,7 @@ Static Public Member Functions diff --git a/docs/classraylib_1_1_model-members.html b/docs/classraylib_1_1_model-members.html index 0d20eae..d671efc 100644 --- a/docs/classraylib_1_1_model-members.html +++ b/docs/classraylib_1_1_model-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -79,7 +79,7 @@ $(function() { Draw(::Vector3 position, ::Vector3 rotationAxis, float rotationAngle=0.0f, ::Vector3 scale={1.0f, 1.0f, 1.0f}, ::Color tint={255, 255, 255, 255})raylib::Modelinline DrawWires(::Vector3 position, float scale=1.0f, ::Color tint={255, 255, 255, 255})raylib::Modelinline DrawWires(::Vector3 position, ::Vector3 rotationAxis, float rotationAngle=0.0f, ::Vector3 scale={1.0f, 1.0f, 1.0f}, ::Color tint={255, 255, 255, 255})raylib::Modelinline - GetBindPoe() constraylib::Modelinline + GetBindPose() constraylib::Modelinline GetBoneCount() constraylib::Modelinline GetBones() constraylib::Modelinline GetBoundingBox() constraylib::Modelinline @@ -94,35 +94,34 @@ $(function() { IsReady() constraylib::Modelinline Load(const std::string &fileName)raylib::Modelinline Load(const ::Mesh &mesh)raylib::Modelinline - Model(const ::Model &model) (defined in raylib::Model)raylib::Modelinline - Model(const std::string &fileName) (defined in raylib::Model)raylib::Modelinline - Model(const ::Mesh &mesh) (defined in raylib::Model)raylib::Modelinline - Model(const Model &)=delete (defined in raylib::Model)raylib::Model - Model(Model &&other) (defined in raylib::Model)raylib::Modelinline - operator BoundingBox() constraylib::Modelinline - operator=(const ::Model &model) (defined in raylib::Model)raylib::Modelinline - operator=(const Model &)=delete (defined in raylib::Model)raylib::Model - operator=(Model &&other) noexcept (defined in raylib::Model)raylib::Modelinline - SetBindPoe(::Transform *value)raylib::Modelinline - SetBoneCount(int value)raylib::Modelinline - SetBones(::BoneInfo *value)raylib::Modelinline - SetMaterialCount(int value)raylib::Modelinline - SetMaterials(::Material *value)raylib::Modelinline - SetMeshCount(int value)raylib::Modelinline - SetMeshes(::Mesh *value)raylib::Modelinline - SetMeshMaterial(int *value)raylib::Modelinline - SetMeshMaterial(int meshId, int materialId)raylib::Modelinline - SetTransform(::Matrix value)raylib::Modelinline - Unload()raylib::Modelinline - UnloadKeepMeshes()raylib::Modelinline - UpdateAnimation(const ::ModelAnimation &anim, int frame)raylib::Modelinline - ~Model() (defined in raylib::Model)raylib::Modelinline + Model() (defined in raylib::Model)raylib::Modelinline + Model(const ::Model &model) (defined in raylib::Model)raylib::Modelinline + Model(const std::string &fileName) (defined in raylib::Model)raylib::Modelinline + Model(const ::Mesh &mesh) (defined in raylib::Model)raylib::Modelinline + Model(const Model &)=delete (defined in raylib::Model)raylib::Model + Model(Model &&other) (defined in raylib::Model)raylib::Modelinline + operator BoundingBox() constraylib::Modelinline + operator=(const ::Model &model) (defined in raylib::Model)raylib::Modelinline + operator=(const Model &)=delete (defined in raylib::Model)raylib::Model + operator=(Model &&other) noexcept (defined in raylib::Model)raylib::Modelinline + SetBindPose(::Transform *value)raylib::Modelinline + SetBoneCount(int value)raylib::Modelinline + SetBones(::BoneInfo *value)raylib::Modelinline + SetMaterialCount(int value)raylib::Modelinline + SetMaterials(::Material *value)raylib::Modelinline + SetMeshCount(int value)raylib::Modelinline + SetMeshes(::Mesh *value)raylib::Modelinline + SetMeshMaterial(int *value)raylib::Modelinline + SetMeshMaterial(int meshId, int materialId)raylib::Modelinline + SetTransform(::Matrix value)raylib::Modelinline + Unload()raylib::Modelinline + UnloadKeepMeshes()raylib::Modelinline + UpdateAnimation(const ::ModelAnimation &anim, int frame)raylib::Modelinline + ~Model() (defined in raylib::Model)raylib::Modelinline diff --git a/docs/classraylib_1_1_model.html b/docs/classraylib_1_1_model.html index c371990..476c476 100644 --- a/docs/classraylib_1_1_model.html +++ b/docs/classraylib_1_1_model.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Model Class Reference @@ -32,10 +32,10 @@ - + @@ -112,9 +112,9 @@ Public Member Functions Model & DrawWires (::Vector3 position, float scale=1.0f, ::Color tint={255, 255, 255, 255})  Draw a model wires (with texture if set)
  -::Transform * GetBindPoe () const - Retrieves the bindPose value for the object. More...
-  +::Transform * GetBindPose () const + Retrieves the bindPose value for the object. More...
+  int GetBoneCount () const  Retrieves the boneCount value for the object. More...
  @@ -174,9 +174,9 @@ bool  Model & operator= (Model &&other) noexcept   -void SetBindPoe (::Transform *value) - Sets the bindPose value for the object. More...
-  +void SetBindPose (::Transform *value) + Sets the bindPose value for the object. More...
+  void SetBoneCount (int value)  Sets the boneCount value for the object. More...
  @@ -223,8 +223,8 @@ void Definition at line 15 of file Model.hpp.

Member Function Documentation

- -

◆ GetBindPoe()

+ +

◆ GetBindPose()

@@ -233,7 +233,7 @@ void  - + @@ -249,7 +249,7 @@ void 
::Transform* raylib::Model::GetBindPoe ::Transform* raylib::Model::GetBindPose ( ) const
Returns
The bindPose value of the object.
-

Definition at line 59 of file Model.hpp.

+

Definition at line 68 of file Model.hpp.

@@ -279,7 +279,7 @@ void 
Returns
The boneCount value of the object.
-

Definition at line 57 of file Model.hpp.

+

Definition at line 66 of file Model.hpp.

@@ -309,7 +309,7 @@ void 
Returns
The bones value of the object.
-

Definition at line 58 of file Model.hpp.

+

Definition at line 67 of file Model.hpp.

@@ -339,7 +339,7 @@ void 
Returns
The materialCount value of the object.
-

Definition at line 53 of file Model.hpp.

+

Definition at line 62 of file Model.hpp.

@@ -369,7 +369,7 @@ void 
Returns
The materials value of the object.
-

Definition at line 55 of file Model.hpp.

+

Definition at line 64 of file Model.hpp.

@@ -399,7 +399,7 @@ void 
Returns
The meshCount value of the object.
-

Definition at line 52 of file Model.hpp.

+

Definition at line 61 of file Model.hpp.

@@ -429,7 +429,7 @@ void 
Returns
The meshes value of the object.
-

Definition at line 54 of file Model.hpp.

+

Definition at line 63 of file Model.hpp.

@@ -459,7 +459,7 @@ void 
Returns
The meshMaterial value of the object.
-

Definition at line 56 of file Model.hpp.

+

Definition at line 65 of file Model.hpp.

@@ -489,7 +489,7 @@ void 
Returns
The transform value of the object.
-

Definition at line 51 of file Model.hpp.

+

Definition at line 60 of file Model.hpp.

@@ -520,9 +520,9 @@ void 
Model from the given Mesh.

Returns
True of false depending on whether or not the model was successfully loaded.
-

Definition at line 218 of file Model.hpp.

+

Definition at line 230 of file Model.hpp.

-

References IsReady().

+

References IsReady().

@@ -553,14 +553,14 @@ void 
Model from the given file.

Returns
True of false depending on whether or not the model was successfully loaded.
-

Definition at line 208 of file Model.hpp.

+

Definition at line 217 of file Model.hpp.

-

References IsReady().

+

References IsReady().

- -

◆ SetBindPoe()

+ +

◆ SetBindPose()

@@ -569,7 +569,7 @@ void 
- + @@ -591,7 +591,7 @@ void 
void raylib::Model::SetBindPoe void raylib::Model::SetBindPose ( ::Transform *  value)Definition at line 59 of file Model.hpp.

+

Definition at line 68 of file Model.hpp.

@@ -627,7 +627,7 @@ void 
Definition at line 57 of file Model.hpp.

+

Definition at line 66 of file Model.hpp.

@@ -663,7 +663,7 @@ void 
Definition at line 58 of file Model.hpp.

+

Definition at line 67 of file Model.hpp.

@@ -699,7 +699,7 @@ void 
Definition at line 53 of file Model.hpp.

+

Definition at line 62 of file Model.hpp.

@@ -735,7 +735,7 @@ void 
Definition at line 55 of file Model.hpp.

+

Definition at line 64 of file Model.hpp.

@@ -771,7 +771,7 @@ void 
Definition at line 52 of file Model.hpp.

+

Definition at line 61 of file Model.hpp.

@@ -807,7 +807,7 @@ void 
Definition at line 54 of file Model.hpp.

+

Definition at line 63 of file Model.hpp.

@@ -843,7 +843,7 @@ void 
Definition at line 56 of file Model.hpp.

+

Definition at line 65 of file Model.hpp.

@@ -879,16 +879,14 @@ void 
Definition at line 51 of file Model.hpp.

+

Definition at line 60 of file Model.hpp.

diff --git a/docs/classraylib_1_1_model_animation-members.html b/docs/classraylib_1_1_model_animation-members.html index fafbdff..bdf4e7f 100644 --- a/docs/classraylib_1_1_model_animation-members.html +++ b/docs/classraylib_1_1_model_animation-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@
- + @@ -97,9 +97,7 @@ $(function() {
diff --git a/docs/classraylib_1_1_model_animation.html b/docs/classraylib_1_1_model_animation.html index ff31a6a..2d09732 100644 --- a/docs/classraylib_1_1_model_animation.html +++ b/docs/classraylib_1_1_model_animation.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::ModelAnimation Class Reference @@ -32,10 +32,10 @@
- + @@ -416,9 +416,7 @@ static std::vector< diff --git a/docs/classraylib_1_1_mouse-members.html b/docs/classraylib_1_1_mouse-members.html index 9f60b72..1b550d7 100644 --- a/docs/classraylib_1_1_mouse-members.html +++ b/docs/classraylib_1_1_mouse-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -98,9 +98,7 @@ $(function() { diff --git a/docs/classraylib_1_1_mouse.html b/docs/classraylib_1_1_mouse.html index 5df753e..b3bd390 100644 --- a/docs/classraylib_1_1_mouse.html +++ b/docs/classraylib_1_1_mouse.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Mouse Class Reference @@ -32,10 +32,10 @@ - + @@ -187,9 +187,7 @@ static void SetY (int diff --git a/docs/classraylib_1_1_music-members.html b/docs/classraylib_1_1_music-members.html index a08b729..ddf1db7 100644 --- a/docs/classraylib_1_1_music-members.html +++ b/docs/classraylib_1_1_music-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -113,9 +113,7 @@ $(function() { diff --git a/docs/classraylib_1_1_music.html b/docs/classraylib_1_1_music.html index a7e4dd7..db39747 100644 --- a/docs/classraylib_1_1_music.html +++ b/docs/classraylib_1_1_music.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Music Class Reference @@ -32,10 +32,10 @@ - + @@ -666,9 +666,7 @@ void  diff --git a/docs/classraylib_1_1_physics-members.html b/docs/classraylib_1_1_physics-members.html index 4bd7b27..59e2e45 100644 --- a/docs/classraylib_1_1_physics-members.html +++ b/docs/classraylib_1_1_physics-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -101,9 +101,7 @@ $(function() { diff --git a/docs/classraylib_1_1_physics.html b/docs/classraylib_1_1_physics.html index b0fcc39..e4b7db2 100644 --- a/docs/classraylib_1_1_physics.html +++ b/docs/classraylib_1_1_physics.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Physics Class Reference @@ -32,10 +32,10 @@ - + @@ -152,9 +152,7 @@ int GetShapeVerticesCount< diff --git a/docs/classraylib_1_1_ray-members.html b/docs/classraylib_1_1_ray-members.html index 3a6c8d3..7ff40cd 100644 --- a/docs/classraylib_1_1_ray-members.html +++ b/docs/classraylib_1_1_ray-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -94,9 +94,7 @@ $(function() { diff --git a/docs/classraylib_1_1_ray.html b/docs/classraylib_1_1_ray.html index 1b6f29a..472859e 100644 --- a/docs/classraylib_1_1_ray.html +++ b/docs/classraylib_1_1_ray.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Ray Class Reference @@ -32,10 +32,10 @@ - + @@ -278,9 +278,7 @@ bool  diff --git a/docs/classraylib_1_1_ray_collision-members.html b/docs/classraylib_1_1_ray_collision-members.html index 3f793a2..2cba4e3 100644 --- a/docs/classraylib_1_1_ray_collision-members.html +++ b/docs/classraylib_1_1_ray_collision-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -95,9 +95,7 @@ $(function() { diff --git a/docs/classraylib_1_1_ray_collision.html b/docs/classraylib_1_1_ray_collision.html index 28f23d9..dae3aeb 100644 --- a/docs/classraylib_1_1_ray_collision.html +++ b/docs/classraylib_1_1_ray_collision.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::RayCollision Class Reference @@ -32,10 +32,10 @@ - + @@ -411,9 +411,7 @@ Public Member Functions diff --git a/docs/classraylib_1_1_raylib_exception-members.html b/docs/classraylib_1_1_raylib_exception-members.html index 389845a..f91adbb 100644 --- a/docs/classraylib_1_1_raylib_exception-members.html +++ b/docs/classraylib_1_1_raylib_exception-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -80,9 +80,7 @@ $(function() { diff --git a/docs/classraylib_1_1_raylib_exception.html b/docs/classraylib_1_1_raylib_exception.html index e9ece74..a1a2769 100644 --- a/docs/classraylib_1_1_raylib_exception.html +++ b/docs/classraylib_1_1_raylib_exception.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::RaylibException Class Reference @@ -32,10 +32,10 @@ - + @@ -175,9 +175,7 @@ Public Member Functions diff --git a/docs/classraylib_1_1_rectangle-members.html b/docs/classraylib_1_1_rectangle-members.html index fdf59ce..94b748d 100644 --- a/docs/classraylib_1_1_rectangle-members.html +++ b/docs/classraylib_1_1_rectangle-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -118,9 +118,7 @@ $(function() { diff --git a/docs/classraylib_1_1_rectangle.html b/docs/classraylib_1_1_rectangle.html index 4304a81..3eb094c 100644 --- a/docs/classraylib_1_1_rectangle.html +++ b/docs/classraylib_1_1_rectangle.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Rectangle Class Reference @@ -32,10 +32,10 @@ - + @@ -476,9 +476,7 @@ inline ::Vector4  diff --git a/docs/classraylib_1_1_render_texture-members.html b/docs/classraylib_1_1_render_texture-members.html index 6286103..88449a1 100644 --- a/docs/classraylib_1_1_render_texture-members.html +++ b/docs/classraylib_1_1_render_texture-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -99,9 +99,7 @@ $(function() { diff --git a/docs/classraylib_1_1_render_texture.html b/docs/classraylib_1_1_render_texture.html index c8b8610..7954c65 100644 --- a/docs/classraylib_1_1_render_texture.html +++ b/docs/classraylib_1_1_render_texture.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::RenderTexture Class Reference @@ -32,10 +32,10 @@ - + @@ -353,9 +353,7 @@ void Unload () diff --git a/docs/classraylib_1_1_shader-members.html b/docs/classraylib_1_1_shader-members.html index c150a03..c206a4b 100644 --- a/docs/classraylib_1_1_shader-members.html +++ b/docs/classraylib_1_1_shader-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -104,9 +104,7 @@ $(function() { diff --git a/docs/classraylib_1_1_shader.html b/docs/classraylib_1_1_shader.html index bc865f9..44e80f9 100644 --- a/docs/classraylib_1_1_shader.html +++ b/docs/classraylib_1_1_shader.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Shader Class Reference @@ -32,10 +32,10 @@ - + @@ -630,9 +630,7 @@ Static Public Member Functions diff --git a/docs/classraylib_1_1_sound-members.html b/docs/classraylib_1_1_sound-members.html index 6190226..e67a261 100644 --- a/docs/classraylib_1_1_sound-members.html +++ b/docs/classraylib_1_1_sound-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -106,9 +106,7 @@ $(function() { diff --git a/docs/classraylib_1_1_sound.html b/docs/classraylib_1_1_sound.html index 6d10854..9a7f196 100644 --- a/docs/classraylib_1_1_sound.html +++ b/docs/classraylib_1_1_sound.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Sound Class Reference @@ -32,10 +32,10 @@ - + @@ -177,6 +177,7 @@ void 

Wave/Sound management functions.

raylib::Sound boom("boom.wav");
boom.Play();
+
Wave/Sound management functions.
Definition: Sound.hpp:19

Definition at line 19 of file Sound.hpp.

Constructor & Destructor Documentation

@@ -315,6 +316,8 @@ void Definition at line 67 of file Sound.hpp.

+

References Unload().

+ @@ -454,17 +457,12 @@ void Definition at line 67 of file Sound.hpp.

-

References Unload().

- -
Wave/Sound management functions.
Definition: Sound.hpp:19
diff --git a/docs/classraylib_1_1_text-members.html b/docs/classraylib_1_1_text-members.html index 80e43be..608cc2c 100644 --- a/docs/classraylib_1_1_text-members.html +++ b/docs/classraylib_1_1_text-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -99,15 +99,13 @@ $(function() { SetSpacing(float value)raylib::Textinline SetText(std::string value)raylib::Textinline spacingraylib::Text - Text(const std::string &text="", float fontSize=10, const ::Color &color=WHITE, const ::Font &font=::GetFontDefault(), float spacing=0)raylib::Textinline - Text(const ::Font &font, const std::string &text="", float fontSize=10, float spacing=0, const ::Color &color=WHITE)raylib::Textinline textraylib::Text + Text(const std::string &text="", float fontSize=10, const ::Color &color=WHITE, const ::Font &font=::GetFontDefault(), float spacing=0)raylib::Textinline + Text(const ::Font &font, const std::string &text="", float fontSize=10, float spacing=0, const ::Color &color=WHITE)raylib::Textinline diff --git a/docs/classraylib_1_1_text.html b/docs/classraylib_1_1_text.html index c68b780..c83ddf6 100644 --- a/docs/classraylib_1_1_text.html +++ b/docs/classraylib_1_1_text.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Text Class Reference @@ -32,10 +32,10 @@ - + @@ -964,9 +964,7 @@ std::string  diff --git a/docs/classraylib_1_1_texture-members.html b/docs/classraylib_1_1_texture-members.html index 33f2049..d6db1ca 100644 --- a/docs/classraylib_1_1_texture-members.html +++ b/docs/classraylib_1_1_texture-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -94,9 +94,9 @@ $(function() { GetSize() constraylib::Textureinline GetWidth() constraylib::Textureinline IsReady() constraylib::Textureinline - Load(const ::Image &image)raylib::Textureinline - Load(const ::Image &image, int layoutType)raylib::Textureinline - Load(const std::string &fileName)raylib::Textureinline + Load(const ::Image &image)raylib::Textureinline + Load(const ::Image &image, int layoutType)raylib::Textureinline + Load(const std::string &fileName)raylib::Textureinline operator raylib::Image()raylib::Textureinline operator=(const ::Texture &texture) (defined in raylib::Texture)raylib::Textureinline operator=(const Texture &)=delete (defined in raylib::Texture)raylib::Texture @@ -112,23 +112,22 @@ $(function() { SetShapes(const ::Rectangle &source)raylib::Textureinline SetWidth(int value)raylib::Textureinline SetWrap(int wrapMode)raylib::Textureinline - Texture(unsigned int id=0, int width=0, int height=0, int mipmaps=0, int format=0)raylib::Textureinline - Texture(const ::Texture &texture)raylib::Textureinline - Texture(const ::Image &image)raylib::Textureinline - Texture(const ::Image &image, int layout)raylib::Textureinline - Texture(const std::string &fileName)raylib::Textureinline - Texture(const Texture &)=delete (defined in raylib::Texture)raylib::Texture - Texture(Texture &&other) (defined in raylib::Texture)raylib::Textureinline - Unload()raylib::Textureinline - Update(const void *pixels)raylib::Textureinline - Update(::Rectangle rec, const void *pixels)raylib::Textureinline - ~Texture() (defined in raylib::Texture)raylib::Textureinline + Texture()raylib::Textureinline + Texture(unsigned int id, int width, int height, int mipmaps=1, int format=PIXELFORMAT_UNCOMPRESSED_R8G8B8A8)raylib::Textureinline + Texture(const ::Texture &texture)raylib::Textureinline + Texture(const ::Image &image)raylib::Textureinline + Texture(const ::Image &image, int layout)raylib::Textureinline + Texture(const std::string &fileName)raylib::Textureinline + Texture(const Texture &)=delete (defined in raylib::Texture)raylib::Texture + Texture(Texture &&other) (defined in raylib::Texture)raylib::Textureinline + Unload()raylib::Textureinline + Update(const void *pixels)raylib::Textureinline + Update(::Rectangle rec, const void *pixels)raylib::Textureinline + ~Texture() (defined in raylib::Texture)raylib::Textureinline diff --git a/docs/classraylib_1_1_texture.html b/docs/classraylib_1_1_texture.html index af7e41c..d3d36cb 100644 --- a/docs/classraylib_1_1_texture.html +++ b/docs/classraylib_1_1_texture.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Texture Class Reference @@ -32,10 +32,10 @@ - + @@ -81,6 +81,10 @@ $(function() { + + + @@ -100,10 +104,10 @@ Public Member Functions - - - + + + @@ -165,18 +169,18 @@ inline ::Vector2  - - - - - - - - - + + + + + + + + + @@ -278,9 +282,9 @@ void 

Public Member Functions

+ Texture ()
 Default texture constructor.
 
 Texture (const ::Image &image)
 Creates a texture from the given Image. More...
 
 Texture (Texture &&other)
 
- Texture (unsigned int id=0, int width=0, int height=0, int mipmaps=0, int format=0)
 Default constructor to create an empty Texture object.
 
+ Texture (unsigned int id, int width, int height, int mipmaps=1, int format=PIXELFORMAT_UNCOMPRESSED_R8G8B8A8)
 Move/Create a texture structure manually.
 
Texture & Draw (::NPatchInfo nPatchInfo, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, ::Color tint={255, 255, 255, 255})
 
bool IsReady () const
 Determines whether or not the Texture has been loaded and is ready. More...
 
-bool Load (const ::Image &image)
 Load texture from image data.
 
-bool Load (const ::Image &image, int layoutType)
 Load cubemap from image, multiple image cubemap layouts supported.
 
-bool Load (const std::string &fileName)
 Load texture from file into GPU memory (VRAM)
 
+void Load (const ::Image &image)
 Load texture from image data.
 
+void Load (const ::Image &image, int layoutType)
 Load cubemap from image, multiple image cubemap layouts supported.
 
+void Load (const std::string &fileName)
 Load texture from file into GPU memory (VRAM)
 
 operator raylib::Image ()
 Get pixel data from GPU texture and return an Image.
Definition at line 41 of file Texture.hpp.

+

Definition at line 46 of file Texture.hpp.

-

References Load().

+

References Load().

@@ -327,9 +331,9 @@ void 
See also
LoadTextureCubemap()
-

Definition at line 54 of file Texture.hpp.

+

Definition at line 57 of file Texture.hpp.

-

References Load().

+

References Load().

@@ -365,9 +369,9 @@ void 
Definition at line 65 of file Texture.hpp.

+

Definition at line 66 of file Texture.hpp.

-

References Load().

+

References Load().

@@ -398,7 +402,7 @@ void 
Returns
The format value of the object.
-

Definition at line 91 of file Texture.hpp.

+

Definition at line 90 of file Texture.hpp.

@@ -428,7 +432,7 @@ void 
Returns
The height value of the object.
-

Definition at line 89 of file Texture.hpp.

+

Definition at line 88 of file Texture.hpp.

@@ -458,7 +462,7 @@ void 
Returns
The id value of the object.
-

Definition at line 87 of file Texture.hpp.

+

Definition at line 86 of file Texture.hpp.

@@ -488,7 +492,7 @@ void 
Returns
The mipmaps value of the object.
-

Definition at line 90 of file Texture.hpp.

+

Definition at line 89 of file Texture.hpp.

@@ -518,7 +522,7 @@ void 
Returns
The width value of the object.
-

Definition at line 88 of file Texture.hpp.

+

Definition at line 87 of file Texture.hpp.

@@ -548,9 +552,9 @@ void 
Texture has been loaded and is ready.

Returns
True or false depending on whether the Texture has data.
-

Definition at line 305 of file Texture.hpp.

+

Definition at line 310 of file Texture.hpp.

-

Referenced by Load().

+

Referenced by Load().

@@ -586,7 +590,7 @@ void 
Definition at line 91 of file Texture.hpp.

+

Definition at line 90 of file Texture.hpp.

@@ -622,7 +626,7 @@ void 
Definition at line 89 of file Texture.hpp.

+

Definition at line 88 of file Texture.hpp.

@@ -658,7 +662,7 @@ void 
Definition at line 87 of file Texture.hpp.

+

Definition at line 86 of file Texture.hpp.

@@ -694,7 +698,7 @@ void 
Definition at line 90 of file Texture.hpp.

+

Definition at line 89 of file Texture.hpp.

@@ -730,16 +734,14 @@ void 
Definition at line 88 of file Texture.hpp.

+

Definition at line 87 of file Texture.hpp.

diff --git a/docs/classraylib_1_1_vector2-members.html b/docs/classraylib_1_1_vector2-members.html index f6dc4db..15bb53a 100644 --- a/docs/classraylib_1_1_vector2-members.html +++ b/docs/classraylib_1_1_vector2-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@
- + @@ -135,9 +135,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vector2.html b/docs/classraylib_1_1_vector2.html index 56de285..fe9c6ea 100644 --- a/docs/classraylib_1_1_vector2.html +++ b/docs/classraylib_1_1_vector2.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Vector2 Class Reference @@ -32,10 +32,10 @@ - + @@ -437,9 +437,7 @@ static Vector2 < diff --git a/docs/classraylib_1_1_vector3-members.html b/docs/classraylib_1_1_vector3-members.html index b838e67..890f368 100644 --- a/docs/classraylib_1_1_vector3-members.html +++ b/docs/classraylib_1_1_vector3-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -144,9 +144,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vector3.html b/docs/classraylib_1_1_vector3.html index 20ded36..6ab8e13 100644 --- a/docs/classraylib_1_1_vector3.html +++ b/docs/classraylib_1_1_vector3.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Vector3 Class Reference @@ -32,10 +32,10 @@ - + @@ -507,9 +507,7 @@ static Vector3 < diff --git a/docs/classraylib_1_1_vector4-members.html b/docs/classraylib_1_1_vector4-members.html index 21788f0..92008b8 100644 --- a/docs/classraylib_1_1_vector4-members.html +++ b/docs/classraylib_1_1_vector4-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -120,9 +120,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vector4.html b/docs/classraylib_1_1_vector4.html index bc89a29..51861fb 100644 --- a/docs/classraylib_1_1_vector4.html +++ b/docs/classraylib_1_1_vector4.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Vector4 Class Reference @@ -32,10 +32,10 @@ - + @@ -482,9 +482,7 @@ static Vector4 < diff --git a/docs/classraylib_1_1_vr_stereo_config-members.html b/docs/classraylib_1_1_vr_stereo_config-members.html index f125ce6..818bd46 100644 --- a/docs/classraylib_1_1_vr_stereo_config-members.html +++ b/docs/classraylib_1_1_vr_stereo_config-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -84,9 +84,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vr_stereo_config.html b/docs/classraylib_1_1_vr_stereo_config.html index 087d467..0df25d7 100644 --- a/docs/classraylib_1_1_vr_stereo_config.html +++ b/docs/classraylib_1_1_vr_stereo_config.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::VrStereoConfig Class Reference @@ -32,10 +32,10 @@ - + @@ -112,9 +112,7 @@ void  diff --git a/docs/classraylib_1_1_wave-members.html b/docs/classraylib_1_1_wave-members.html index 75054e6..54dcdb1 100644 --- a/docs/classraylib_1_1_wave-members.html +++ b/docs/classraylib_1_1_wave-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -111,9 +111,7 @@ $(function() { diff --git a/docs/classraylib_1_1_wave.html b/docs/classraylib_1_1_wave.html index cbe829f..a6e0ba2 100644 --- a/docs/classraylib_1_1_wave.html +++ b/docs/classraylib_1_1_wave.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Wave Class Reference @@ -32,10 +32,10 @@ - + @@ -698,9 +698,7 @@ void  diff --git a/docs/classraylib_1_1_window-members.html b/docs/classraylib_1_1_window-members.html index dc57d48..918b547 100644 --- a/docs/classraylib_1_1_window-members.html +++ b/docs/classraylib_1_1_window-members.html @@ -3,7 +3,7 @@ - + raylib-cpp: Member List @@ -32,10 +32,10 @@ - + @@ -90,7 +90,7 @@ $(function() { GetSize() constraylib::Windowinline GetTime() constraylib::Windowinline GetWidth() constraylib::Windowinline - Init(int width=800, int height=450, const std::string &title="raylib")raylib::Windowinline + Init(int width=800, int height=450, const std::string &title="raylib")raylib::Windowinline IsCursorOnScreen() constraylib::Windowinline IsFocused() constraylib::Windowinline IsFullscreen() constraylib::Windowinline @@ -117,14 +117,13 @@ $(function() { SetTitle(const std::string &title)raylib::Windowinline ShouldClose() constraylib::Windowinline ToggleFullscreen()raylib::Windowinline - Window(int width=800, int height=450, const std::string &title="raylib", bool lateInit=false)raylib::Windowinline - ~Window()raylib::Windowinline + Window() (defined in raylib::Window)raylib::Windowinline + Window(int width, int height, const std::string &title)raylib::Windowinline + ~Window()raylib::Windowinline diff --git a/docs/classraylib_1_1_window.html b/docs/classraylib_1_1_window.html index 70b0552..5977f54 100644 --- a/docs/classraylib_1_1_window.html +++ b/docs/classraylib_1_1_window.html @@ -3,7 +3,7 @@ - + raylib-cpp: raylib::Window Class Reference @@ -32,10 +32,10 @@ - + @@ -82,9 +82,10 @@ $(function() { - - - + + + @@ -149,9 +150,9 @@ double  - - - + + + @@ -264,9 +265,9 @@ static bool  - - -

Public Member Functions

 Window (int width=800, int height=450, const std::string &title="raylib", bool lateInit=false)
 Initialize window and OpenGL context. More...
 
+ Window (int width, int height, const std::string &title)
 Initialize window and OpenGL context.
 
 ~Window ()
 Close window and unload OpenGL context.
GetWidth () const
 Get current screen width.
 
bool Init (int width=800, int height=450, const std::string &title="raylib")
 Initializes the window. More...
 
void Init (int width=800, int height=450, const std::string &title="raylib")
 Initializes the window. More...
 
bool IsCursorOnScreen () const
 Check if cursor is on the current screen.

Window and Graphics Device Functions.

Definition at line 13 of file Window.hpp.

-

Constructor & Destructor Documentation

- -

◆ Window()

+

Member Function Documentation

+ +

◆ Init()

@@ -275,68 +276,7 @@ static bool 
- - - - - - - - - - - - - - - - - - - - - - - - - - - - -
raylib::Window::Window (int width = 800,
int height = 450,
const std::string & title = "raylib",
bool lateInit = false 
)
-
-inline
-
- -

Initialize window and OpenGL context.

-
Exceptions
- - -
raylib::RaylibExceptionThrown if the window failed to initiate.
-
-
- -

Definition at line 20 of file Window.hpp.

- -

References Init().

- -
- -

Member Function Documentation

- -

◆ Init()

- -
-
- - -
- - - + @@ -367,22 +307,26 @@ static bool 
bool raylib::Window::Init void raylib::Window::Init ( int  width = 800, diff --git a/docs/dir_d44c64559bbebec7f509842c48db8b23.html b/docs/dir_d44c64559bbebec7f509842c48db8b23.html index a5dfdf9..5d13d6c 100644 --- a/docs/dir_d44c64559bbebec7f509842c48db8b23.html +++ b/docs/dir_d44c64559bbebec7f509842c48db8b23.html @@ -3,7 +3,7 @@ - + raylib-cpp: include Directory Reference @@ -32,10 +32,10 @@
- + @@ -75,9 +75,7 @@ $(function() { diff --git a/docs/doxygen.css b/docs/doxygen.css index 73ecbb2..ffbff02 100644 --- a/docs/doxygen.css +++ b/docs/doxygen.css @@ -1,4 +1,4 @@ -/* The standard CSS for doxygen 1.8.17 */ +/* The standard CSS for doxygen 1.9.1 */ body, table, div, p, dl { font: 400 14px/22px Roboto,sans-serif; @@ -66,7 +66,7 @@ p.startli, p.startdd { margin-top: 2px; } -th p.starttd, p.intertd, p.endtd { +th p.starttd, th p.intertd, th p.endtd { font-size: 100%; font-weight: 700; } @@ -103,30 +103,96 @@ caption { } span.legend { - font-size: 70%; - text-align: center; -} - -h3.version { - font-size: 90%; - text-align: center; -} - -div.qindex, div.navtab{ - background-color: #EBEFF6; - border: 1px solid #A3B4D7; + font-size: 70%; text-align: center; } -div.qindex, div.navpath { - width: 100%; - line-height: 140%; +h3.version { + font-size: 90%; + text-align: center; } div.navtab { - margin-right: 15px; + border-right: 1px solid #A3B4D7; + padding-right: 15px; + text-align: right; + line-height: 110%; } +div.navtab table { + border-spacing: 0; +} + +td.navtab { + padding-right: 6px; + padding-left: 6px; +} +td.navtabHL { + background-image: url('tab_a.png'); + background-repeat:repeat-x; + padding-right: 6px; + padding-left: 6px; +} + +td.navtabHL a, td.navtabHL a:visited { + color: #fff; + text-shadow: 0px 1px 1px rgba(0, 0, 0, 1.0); +} + +a.navtab { + font-weight: bold; +} + +div.qindex{ + text-align: center; + width: 100%; + line-height: 140%; + font-size: 130%; + color: #A0A0A0; +} + +dt.alphachar{ + font-size: 180%; + font-weight: bold; +} + +.alphachar a{ + color: black; +} + +.alphachar a:hover, .alphachar a:visited{ + text-decoration: none; +} + +.classindex dl { + padding: 25px; + column-count:1 +} + +.classindex dd { + display:inline-block; + margin-left: 50px; + width: 90%; + line-height: 1.15em; +} + +.classindex dl.odd { + background-color: #F8F9FC; +} + +@media(min-width: 1120px) { + .classindex dl { + column-count:2 + } +} + +@media(min-width: 1320px) { + .classindex dl { + column-count:3 + } +} + + /* @group Link Styling */ a { @@ -143,17 +209,6 @@ a:hover { text-decoration: underline; } -a.qindex { - font-weight: bold; -} - -a.qindexHL { - font-weight: bold; - background-color: #9CAFD4; - color: #FFFFFF; - border: 1px double #869DCA; -} - .contents a.qindexHL:visited { color: #FFFFFF; } @@ -1358,10 +1413,12 @@ dl.citelist dt { font-weight:bold; margin-right:10px; padding:5px; + text-align:right; + width:52px; } dl.citelist dd { - margin:2px 0; + margin:2px 0 2px 72px; padding:5px 0; } @@ -1424,6 +1481,12 @@ div.toc li.level4 { margin-left: 45px; } +span.emoji { + /* font family used at the site: https://unicode.org/emoji/charts/full-emoji-list.html + * font-family: "Noto Color Emoji", "Apple Color Emoji", "Segoe UI Emoji", Times, Symbola, Aegyptus, Code2000, Code2001, Code2002, Musica, serif, LastResort; + */ +} + .PageDocRTL-title div.toc li.level1 { margin-left: 0 !important; margin-right: 0; @@ -1661,47 +1724,6 @@ tr.heading h2 { /* @group Markdown */ -/* -table.markdownTable { - border-collapse:collapse; - margin-top: 4px; - margin-bottom: 4px; -} - -table.markdownTable td, table.markdownTable th { - border: 1px solid #2D4068; - padding: 3px 7px 2px; -} - -table.markdownTableHead tr { -} - -table.markdownTableBodyLeft td, table.markdownTable th { - border: 1px solid #2D4068; - padding: 3px 7px 2px; -} - -th.markdownTableHeadLeft th.markdownTableHeadRight th.markdownTableHeadCenter th.markdownTableHeadNone { - background-color: #374F7F; - color: #FFFFFF; - font-size: 110%; - padding-bottom: 4px; - padding-top: 5px; -} - -th.markdownTableHeadLeft { - text-align: left -} - -th.markdownTableHeadRight { - text-align: right -} - -th.markdownTableHeadCenter { - text-align: center -} -*/ - table.markdownTable { border-collapse:collapse; margin-top: 4px; diff --git a/docs/doxygen.svg b/docs/doxygen.svg index 3f5ebcb..d42dad5 100644 --- a/docs/doxygen.svg +++ b/docs/doxygen.svg @@ -2,15 +2,15 @@ - - + + - - + + @@ -19,7 +19,7 @@ - + diff --git a/docs/dynsections.js b/docs/dynsections.js index c8e84aa..88f2c27 100644 --- a/docs/dynsections.js +++ b/docs/dynsections.js @@ -1,25 +1,26 @@ /* - @licstart The following is the entire license notice for the - JavaScript code in this file. + @licstart The following is the entire license notice for the JavaScript code in this file. - Copyright (C) 1997-2017 by Dimitri van Heesch + The MIT License (MIT) - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or - (at your option) any later version. + Copyright (C) 1997-2020 by Dimitri van Heesch - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. + Permission is hereby granted, free of charge, to any person obtaining a copy of this software + and associated documentation files (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, publish, distribute, + sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: - You should have received a copy of the GNU General Public License along - with this program; if not, write to the Free Software Foundation, Inc., - 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + The above copyright notice and this permission notice shall be included in all copies or + substantial portions of the Software. - @licend The above is the entire license notice - for the JavaScript code in this file + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING + BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + @licend The above is the entire license notice for the JavaScript code in this file */ function toggleVisibility(linkObj) { diff --git a/docs/functions.html b/docs/functions.html index a5534ca..94501f5 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members @@ -32,10 +32,10 @@
- + @@ -102,9 +102,7 @@ $(function() {
diff --git a/docs/functions_b.html b/docs/functions_b.html index d4da1a5..8cbdee1 100644 --- a/docs/functions_b.html +++ b/docs/functions_b.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members @@ -32,10 +32,10 @@ - + @@ -84,9 +84,7 @@ $(function() { diff --git a/docs/functions_c.html b/docs/functions_c.html index 8771a29..bf89d9b 100644 --- a/docs/functions_c.html +++ b/docs/functions_c.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members @@ -32,10 +32,10 @@ - + @@ -76,7 +76,7 @@ $(function() {
  • CheckCollision() : raylib::BoundingBox , raylib::Ray -, raylib::Rectangle +, raylib::Rectangle , raylib::Vector2 , raylib::Vector3
  • @@ -105,7 +105,7 @@ $(function() { , raylib::Window
  • Color() -: raylib::Color +: raylib::Color , raylib::Image
  • color @@ -134,7 +134,7 @@ $(function() { , raylib::Wave
  • Crop() -: raylib::Image +: raylib::Image , raylib::Wave
  • Cube() @@ -150,9 +150,7 @@ $(function() { diff --git a/docs/functions_d.html b/docs/functions_d.html index de15eea..cf3a1ea 100644 --- a/docs/functions_d.html +++ b/docs/functions_d.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members @@ -32,10 +32,10 @@ - + @@ -74,7 +74,7 @@ $(function() { : raylib::Image
  • Divide() -: raylib::Vector2 +: raylib::Vector2 , raylib::Vector3
  • DotProduct() @@ -86,7 +86,7 @@ $(function() { , raylib::Model , raylib::Ray , raylib::Rectangle -, raylib::Text +, raylib::Text , raylib::Texture
  • DrawBillboard() @@ -115,15 +115,13 @@ $(function() { : raylib::Font
  • DrawWires() -: raylib::Model +: raylib::Model
  • diff --git a/docs/functions_e.html b/docs/functions_e.html index df6e8da..03ab54f 100644 --- a/docs/functions_e.html +++ b/docs/functions_e.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members @@ -32,10 +32,10 @@ - + @@ -89,9 +89,7 @@ $(function() { diff --git a/docs/functions_f.html b/docs/functions_f.html index 7032c3e..f951fea 100644 --- a/docs/functions_f.html +++ b/docs/functions_f.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members @@ -32,10 +32,10 @@ - + @@ -99,9 +99,7 @@ $(function() { diff --git a/docs/functions_func.html b/docs/functions_func.html index 56661d2..0bcaa27 100644 --- a/docs/functions_func.html +++ b/docs/functions_func.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -102,9 +102,7 @@ $(function() { diff --git a/docs/functions_func_b.html b/docs/functions_func_b.html index 604d521..4dfc9d0 100644 --- a/docs/functions_func_b.html +++ b/docs/functions_func_b.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -84,9 +84,7 @@ $(function() { diff --git a/docs/functions_func_c.html b/docs/functions_func_c.html index 6b18e45..e439c7b 100644 --- a/docs/functions_func_c.html +++ b/docs/functions_func_c.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -76,7 +76,7 @@ $(function() {
  • CheckCollision() : raylib::BoundingBox , raylib::Ray -, raylib::Rectangle +, raylib::Rectangle , raylib::Vector2 , raylib::Vector3
  • @@ -105,7 +105,7 @@ $(function() { , raylib::Window
  • Color() -: raylib::Color +: raylib::Color , raylib::Image
  • ColorBrightness() @@ -131,7 +131,7 @@ $(function() { , raylib::Wave
  • Crop() -: raylib::Image +: raylib::Image , raylib::Wave
  • Cube() @@ -147,9 +147,7 @@ $(function() { diff --git a/docs/functions_func_d.html b/docs/functions_func_d.html index aba8e78..b030576 100644 --- a/docs/functions_func_d.html +++ b/docs/functions_func_d.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -74,7 +74,7 @@ $(function() { : raylib::Image
  • Divide() -: raylib::Vector2 +: raylib::Vector2 , raylib::Vector3
  • DotProduct() @@ -86,7 +86,7 @@ $(function() { , raylib::Model , raylib::Ray , raylib::Rectangle -, raylib::Text +, raylib::Text , raylib::Texture
  • DrawBillboard() @@ -115,15 +115,13 @@ $(function() { : raylib::Font
  • DrawWires() -: raylib::Model +: raylib::Model
  • diff --git a/docs/functions_func_e.html b/docs/functions_func_e.html index e8b80f0..9701f99 100644 --- a/docs/functions_func_e.html +++ b/docs/functions_func_e.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -89,9 +89,7 @@ $(function() { diff --git a/docs/functions_func_f.html b/docs/functions_func_f.html index 624f9a6..56fd096 100644 --- a/docs/functions_func_f.html +++ b/docs/functions_func_f.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -93,9 +93,7 @@ $(function() { diff --git a/docs/functions_func_g.html b/docs/functions_func_g.html index 34acbcc..f0c5df8 100644 --- a/docs/functions_func_g.html +++ b/docs/functions_func_g.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -100,8 +100,8 @@ $(function() {
  • GetBaseSize() : raylib::Font
  • -
  • GetBindPoe() -: raylib::Model +
  • GetBindPose() +: raylib::Model
  • GetBoneCount() : raylib::Model @@ -133,7 +133,7 @@ $(function() {
  • GetCollision() : raylib::BoundingBox , raylib::Model -, raylib::Ray +, raylib::Ray , raylib::Rectangle
  • GetColor() @@ -489,9 +489,7 @@ $(function() { diff --git a/docs/functions_func_h.html b/docs/functions_func_h.html index 4ee71cf..3c84321 100644 --- a/docs/functions_func_h.html +++ b/docs/functions_func_h.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -77,9 +77,7 @@ $(function() { diff --git a/docs/functions_func_i.html b/docs/functions_func_i.html index aace75c..39b9542 100644 --- a/docs/functions_func_i.html +++ b/docs/functions_func_i.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -68,7 +68,7 @@ $(function() {

    - i -

    diff --git a/docs/functions_func_n.html b/docs/functions_func_n.html index d78951c..b11277f 100644 --- a/docs/functions_func_n.html +++ b/docs/functions_func_n.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -79,9 +79,7 @@ $(function() { diff --git a/docs/functions_func_o.html b/docs/functions_func_o.html index 3b00c99..0eddfff 100644 --- a/docs/functions_func_o.html +++ b/docs/functions_func_o.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -97,7 +97,7 @@ $(function() {
  • operator*=() : raylib::Vector2 -, raylib::Vector3 +, raylib::Vector3
  • operator+() : raylib::Vector2 @@ -107,18 +107,18 @@ $(function() { : raylib::Vector2
  • operator-() -: raylib::Vector2 -, raylib::Vector3 +: raylib::Vector2 +, raylib::Vector3
  • operator-=() : raylib::Vector2
  • operator/() : raylib::Vector2 -, raylib::Vector3 +, raylib::Vector3
  • operator/=() -: raylib::Vector2 +: raylib::Vector2 , raylib::Vector3
  • operator::Sound() @@ -137,9 +137,7 @@ $(function() { diff --git a/docs/functions_func_p.html b/docs/functions_func_p.html index 4f57bfb..b122309 100644 --- a/docs/functions_func_p.html +++ b/docs/functions_func_p.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -90,9 +90,7 @@ $(function() { diff --git a/docs/functions_func_r.html b/docs/functions_func_r.html index 5bdf883..63b10ca 100644 --- a/docs/functions_func_r.html +++ b/docs/functions_func_r.html @@ -3,7 +3,7 @@ - + raylib-cpp: Class Members - Functions @@ -32,10 +32,10 @@ - + @@ -68,7 +68,7 @@ $(function() {

    - r -