diff --git a/docs/_audio_device_8hpp_source.html b/docs/_audio_device_8hpp_source.html index 3e84d4f..e8df87f 100644 --- a/docs/_audio_device_8hpp_source.html +++ b/docs/_audio_device_8hpp_source.html @@ -122,7 +122,7 @@ $(function() {
raylib::AudioDevice::IsReady
bool IsReady() const
Check if audio device has been initialized successfully.
Definition: AudioDevice.hpp:49
diff --git a/docs/_audio_stream_8hpp_source.html b/docs/_audio_stream_8hpp_source.html index 00553f2..fecc32d 100644 --- a/docs/_audio_stream_8hpp_source.html +++ b/docs/_audio_stream_8hpp_source.html @@ -181,7 +181,7 @@ $(function() {
raylib::AudioStream::AudioStream
AudioStream(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels)
Init audio stream (to stream raw audio pcm data)
Definition: AudioStream.hpp:20
diff --git a/docs/_bounding_box_8hpp_source.html b/docs/_bounding_box_8hpp_source.html index f483d66..66cf6a5 100644 --- a/docs/_bounding_box_8hpp_source.html +++ b/docs/_bounding_box_8hpp_source.html @@ -88,58 +88,63 @@ $(function() {
21  set(::MeshBoundingBox(mesh));
22  }
23 
-
24  BoundingBox(::Vector3 Min, ::Vector3 Max) {
-
25  min = Min;
-
26  max = Max;
+
24  BoundingBox(::Vector3 minMax) {
+
25  min = minMax;
+
26  max = minMax;
27  }
28 
-
29  GETTERSETTER(::Vector3, Min, min)
-
30  GETTERSETTER(::Vector3, Max, max)
-
31 
-
32  BoundingBox& operator=(const ::BoundingBox& box) {
-
33  set(box);
-
34  return *this;
-
35  }
+
29  BoundingBox(::Vector3 Min, ::Vector3 Max) {
+
30  min = Min;
+
31  max = Max;
+
32  }
+
33 
+
34  GETTERSETTER(::Vector3, Min, min)
+
35  GETTERSETTER(::Vector3, Max, max)
36 
-
40  inline BoundingBox& Draw(::Color color = {255, 255, 255, 255}) {
-
41  DrawBoundingBox(*this, color);
-
42  return *this;
-
43  }
-
44 
-
48  inline bool CheckCollision(const ::BoundingBox& box2) const {
-
49  return CheckCollisionBoxes(*this, box2);
-
50  }
-
51 
-
55  inline bool CheckCollision(::Vector3 center, float radius) const {
-
56  return CheckCollisionBoxSphere(*this, center, radius);
-
57  }
-
58 
-
62  inline bool CheckCollision(const ::Ray& ray) const {
-
63  return CheckCollisionRayBox(ray, *this);
-
64  }
-
65 
-
66  private:
-
67  inline void set(const ::BoundingBox& box) {
-
68  min = box.min;
-
69  max = box.max;
-
70  }
-
71 };
-
72 } // namespace raylib
-
73 
-
74 #endif // RAYLIB_CPP_INCLUDE_BOUNDINGBOX_HPP_
+
37  BoundingBox& operator=(const ::BoundingBox& box) {
+
38  set(box);
+
39  return *this;
+
40  }
+
41 
+
45  inline BoundingBox& Draw(::Color color = {255, 255, 255, 255}) {
+
46  DrawBoundingBox(*this, color);
+
47  return *this;
+
48  }
+
49 
+
53  inline bool CheckCollision(const ::BoundingBox& box2) const {
+
54  return CheckCollisionBoxes(*this, box2);
+
55  }
+
56 
+
60  inline bool CheckCollision(::Vector3 center, float radius) const {
+
61  return CheckCollisionBoxSphere(*this, center, radius);
+
62  }
+
63 
+
67  inline bool CheckCollision(const ::Ray& ray) const {
+
68  return CheckCollisionRayBox(ray, *this);
+
69  }
+
70 
+
71  private:
+
72  inline 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:7
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:40
+
raylib::BoundingBox::Draw
BoundingBox & Draw(::Color color={255, 255, 255, 255})
Draw a bounding box with wires.
Definition: BoundingBox.hpp:45
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:55
-
raylib::BoundingBox::CheckCollision
bool CheckCollision(const ::BoundingBox &box2) const
Detect collision between two boxes.
Definition: BoundingBox.hpp:48
+
raylib::BoundingBox::CheckCollision
bool CheckCollision(::Vector3 center, float radius) const
Detect collision between box and sphere.
Definition: BoundingBox.hpp:60
+
raylib::BoundingBox::CheckCollision
bool CheckCollision(const ::BoundingBox &box2) const
Detect collision between two boxes.
Definition: BoundingBox.hpp:53
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
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:62
+
raylib::BoundingBox::CheckCollision
bool CheckCollision(const ::Ray &ray) const
Detect collision between ray and bounding box.
Definition: BoundingBox.hpp:67
diff --git a/docs/_camera2_d_8hpp_source.html b/docs/_camera2_d_8hpp_source.html index 23f7be7..59d5c57 100644 --- a/docs/_camera2_d_8hpp_source.html +++ b/docs/_camera2_d_8hpp_source.html @@ -147,7 +147,7 @@ $(function() {
raylib::Camera2D::GetWorldToScreen
Vector2 GetWorldToScreen(::Vector2 position) const
Returns the screen space position for a 3d world space position.
Definition: Camera2D.hpp:57
diff --git a/docs/_camera3_d_8hpp_source.html b/docs/_camera3_d_8hpp_source.html index 3156124..a2fe571 100644 --- a/docs/_camera3_d_8hpp_source.html +++ b/docs/_camera3_d_8hpp_source.html @@ -214,7 +214,7 @@ $(function() {
raylib::Camera3D::GetWorldToScreen
Vector2 GetWorldToScreen(::Vector3 position) const
Returns the screen space position for a 3d world space position.
Definition: Camera3D.hpp:116
diff --git a/docs/_color_8hpp_source.html b/docs/_color_8hpp_source.html index 60a3582..c7b6d96 100644 --- a/docs/_color_8hpp_source.html +++ b/docs/_color_8hpp_source.html @@ -87,222 +87,223 @@ $(function() {
17  set(color);
18  }
19 
-
20  Color(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) :
-
21  ::Color{red, green, blue, alpha} {};
-
22 
-
23  Color(unsigned char red, unsigned char green, unsigned char blue) :
-
24  ::Color{red, green, blue, 255} {};
-
25 
-
29  Color() : ::Color{0, 0, 0, 255} {};
-
30 
-
34  Color(::Vector3 hsv) {
-
35  set(::ColorFromHSV(hsv.x, hsv.y, hsv.z));
-
36  }
-
37 
-
41  static ::Color FromHSV(float hue, float saturation, float value) {
-
42  return ::ColorFromHSV(hue, saturation, value);
-
43  }
-
44 
-
48  Color(int hexValue) {
-
49  set(::GetColor(hexValue));
-
50  }
-
51 
-
55  Color(::Vector4 normalized) {
-
56  set(::ColorFromNormalized(normalized));
-
57  }
-
58 
-
62  int ToInt() const {
-
63  return ::ColorToInt(*this);
-
64  }
-
65 
-
69  operator int() const {
-
70  return ::ColorToInt(*this);
-
71  }
-
72 
-
76  Color Fade(float alpha) const {
-
77  return ::Fade(*this, alpha);
-
78  }
-
79 
-
83  Vector4 Normalize() const {
-
84  return ::ColorNormalize(*this);
-
85  }
-
86 
-
90  Vector3 ToHSV() const {
-
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)
-
98 
-
99  Color& operator=(const ::Color& color) {
-
100  set(color);
-
101  return *this;
-
102  }
-
103 
-
107  inline Color& ClearBackground() {
-
108  ::ClearBackground(*this);
-
109  return *this;
-
110  }
-
111 
-
112  inline Color& DrawPixel(int x, int y) {
-
113  ::DrawPixel(x, y, *this);
-
114  return *this;
-
115  }
-
116 
-
120  inline Color& DrawPixel(::Vector2 pos) {
-
121  ::DrawPixelV(pos, *this);
-
122  return *this;
-
123  }
-
124 
-
128  inline Color& DrawLine(int startPosX, int startPosY, int endPosX, int endPosY) {
-
129  ::DrawLine(startPosX, startPosY, endPosX, endPosY, *this);
-
130  return *this;
-
131  }
-
132 
-
133  inline Color& DrawLine(::Vector2 startPos, ::Vector2 endPos) {
-
134  ::DrawLineV(startPos, endPos, *this);
-
135  return *this;
-
136  }
-
137 
-
138  inline Color& DrawLine(::Vector2 startPos, ::Vector2 endPos, float thick) {
-
139  ::DrawLineEx(startPos, endPos, thick, *this);
-
140  return *this;
-
141  }
-
142 
-
143  inline Color& DrawLineBezier(::Vector2 startPos, ::Vector2 endPos, float thick) {
-
144  ::DrawLineBezier(startPos, endPos, thick, *this);
-
145  return *this;
-
146  }
-
147 
-
148  inline Color& DrawLineStrip(::Vector2 *points, int numPoints) {
-
149  ::DrawLineStrip(points, numPoints, *this);
-
150  return *this;
-
151  }
-
152 
-
153  inline Color& DrawText(const std::string& text, int posX, int posY, int fontSize) {
-
154  ::DrawText(text.c_str(), posX, posY, fontSize, *this);
-
155  return *this;
-
156  }
-
157 
-
158  inline Color& DrawText(const ::Font& font, const std::string& text, ::Vector2 position,
-
159  float fontSize, float spacing) {
-
160  ::DrawTextEx(font, text.c_str(), position, fontSize, spacing, *this);
-
161  return *this;
-
162  }
-
163 
-
164  inline Color& DrawText(
-
165  const ::Font& font,
-
166  const std::string& text,
-
167  ::Rectangle rec,
-
168  float fontSize,
-
169  float spacing,
-
170  bool wordWrap = false) {
-
171  ::DrawTextRec(font, text.c_str(), rec, fontSize, spacing, wordWrap, *this);
-
172  return *this;
-
173  }
-
174 
-
175  inline Color& DrawRectangle(int posX, int posY, int width, int height) {
-
176  ::DrawRectangle(posX, posY, width, height, *this);
-
177  return *this;
-
178  }
-
179 
-
180  inline Color& DrawRectangle(::Vector2 position, ::Vector2 size) {
-
181  ::DrawRectangleV(position, size, *this);
-
182  return *this;
-
183  }
-
184 
-
185  inline Color& DrawRectangle(::Rectangle rec) {
-
186  ::DrawRectangleRec(rec, *this);
-
187  return *this;
-
188  }
-
189 
-
190  inline Color& DrawRectangle(::Rectangle rec, ::Vector2 origin, float rotation) {
-
191  ::DrawRectanglePro(rec, origin, rotation, *this);
-
192  return *this;
-
193  }
-
194 
-
195  inline Color& DrawRectangleLines(int posX, int posY, int width, int height) {
-
196  ::DrawRectangleLines(posX, posY, width, height, *this);
-
197  return *this;
-
198  }
-
199 
-
200  inline Color& DrawRectangleLines(::Rectangle rec, int lineThick) {
-
201  ::DrawRectangleLinesEx(rec, lineThick, *this);
-
202  return *this;
-
203  }
-
204 
-
208  Color Alpha(float alpha) const {
-
209  return ::ColorAlpha(*this, alpha);
-
210  }
-
211 
-
215  Color AlphaBlend(::Color dst, ::Color tint) const {
-
216  return ::ColorAlphaBlend(dst, *this, tint);
-
217  }
-
218 
-
219  inline static Color LightGray() { return LIGHTGRAY; }
-
220  inline static Color Gray() { return GRAY; }
-
221  inline static Color DarkGray() { return DARKGRAY; }
-
222  inline static Color Yellow() { return YELLOW; }
-
223  inline static Color Gold() { return GOLD; }
-
224  inline static Color Orange() { return ORANGE; }
-
225  inline static Color Pink() { return PINK; }
-
226  inline static Color Red() { return RED; }
-
227  inline static Color Maroon() { return MAROON; }
-
228  inline static Color Green() { return GREEN; }
-
229  inline static Color Lime() { return LIME; }
-
230  inline static Color DarkGreen() { return DARKGREEN; }
-
231  inline static Color SkyBlue() { return SKYBLUE; }
-
232  inline static Color Blue() { return BLUE; }
-
233  inline static Color DarkBlue() { return DARKBLUE; }
-
234  inline static Color Purple() { return PURPLE; }
-
235  inline static Color Violet() { return VIOLET; }
-
236  inline static Color DarkPurple() { return DARKPURPLE; }
-
237  inline static Color Beige() { return BEIGE; }
-
238  inline static Color Brown() { return BROWN; }
-
239  inline static Color DarkBrown() { return DARKBROWN; }
-
240  inline static Color White() { return WHITE; }
-
241  inline static Color Black() { return BLACK; }
-
242  inline static Color Blank() { return BLANK; }
-
243  inline static Color Magenta() { return MAGENTA; }
-
244  inline static Color RayWhite() { return RAYWHITE; }
-
245 
-
246  private:
-
247  inline void set(const ::Color& color) {
-
248  r = color.r;
-
249  g = color.g;
-
250  b = color.b;
-
251  a = color.a;
-
252  }
-
253 };
-
254 
-
255 } // namespace raylib
-
256 
-
257 #endif // RAYLIB_CPP_INCLUDE_COLOR_HPP_
+
20  Color(
+
21  unsigned char red,
+
22  unsigned char green,
+
23  unsigned char blue,
+
24  unsigned char alpha = 255) :
+
25  ::Color{red, green, blue, alpha} {};
+
26 
+
30  Color() : ::Color{0, 0, 0, 255} {};
+
31 
+
35  Color(::Vector3 hsv) {
+
36  set(::ColorFromHSV(hsv.x, hsv.y, hsv.z));
+
37  }
+
38 
+
42  static ::Color FromHSV(float hue, float saturation, float value) {
+
43  return ::ColorFromHSV(hue, saturation, value);
+
44  }
+
45 
+
49  Color(int hexValue) {
+
50  set(::GetColor(hexValue));
+
51  }
+
52 
+
56  Color(::Vector4 normalized) {
+
57  set(::ColorFromNormalized(normalized));
+
58  }
+
59 
+
63  int ToInt() const {
+
64  return ::ColorToInt(*this);
+
65  }
+
66 
+
70  operator int() const {
+
71  return ::ColorToInt(*this);
+
72  }
+
73 
+
77  Color Fade(float alpha) const {
+
78  return ::Fade(*this, alpha);
+
79  }
+
80 
+
84  Vector4 Normalize() const {
+
85  return ::ColorNormalize(*this);
+
86  }
+
87 
+
91  Vector3 ToHSV() const {
+
92  return ::ColorToHSV(*this);
+
93  }
+
94 
+
95  GETTERSETTER(unsigned char, R, r)
+
96  GETTERSETTER(unsigned char, G, g)
+
97  GETTERSETTER(unsigned char, B, b)
+
98  GETTERSETTER(unsigned char, A, a)
+
99 
+
100  Color& operator=(const ::Color& color) {
+
101  set(color);
+
102  return *this;
+
103  }
+
104 
+
108  inline Color& ClearBackground() {
+
109  ::ClearBackground(*this);
+
110  return *this;
+
111  }
+
112 
+
113  inline Color& DrawPixel(int x, int y) {
+
114  ::DrawPixel(x, y, *this);
+
115  return *this;
+
116  }
+
117 
+
121  inline Color& DrawPixel(::Vector2 pos) {
+
122  ::DrawPixelV(pos, *this);
+
123  return *this;
+
124  }
+
125 
+
129  inline Color& DrawLine(int startPosX, int startPosY, int endPosX, int endPosY) {
+
130  ::DrawLine(startPosX, startPosY, endPosX, endPosY, *this);
+
131  return *this;
+
132  }
+
133 
+
134  inline Color& DrawLine(::Vector2 startPos, ::Vector2 endPos) {
+
135  ::DrawLineV(startPos, endPos, *this);
+
136  return *this;
+
137  }
+
138 
+
139  inline Color& DrawLine(::Vector2 startPos, ::Vector2 endPos, float thick) {
+
140  ::DrawLineEx(startPos, endPos, thick, *this);
+
141  return *this;
+
142  }
+
143 
+
144  inline Color& DrawLineBezier(::Vector2 startPos, ::Vector2 endPos, float thick) {
+
145  ::DrawLineBezier(startPos, endPos, thick, *this);
+
146  return *this;
+
147  }
+
148 
+
149  inline Color& DrawLineStrip(::Vector2 *points, int numPoints) {
+
150  ::DrawLineStrip(points, numPoints, *this);
+
151  return *this;
+
152  }
+
153 
+
154  inline Color& DrawText(const std::string& text, int posX, int posY, int fontSize) {
+
155  ::DrawText(text.c_str(), posX, posY, fontSize, *this);
+
156  return *this;
+
157  }
+
158 
+
159  inline Color& DrawText(const ::Font& font, const std::string& text, ::Vector2 position,
+
160  float fontSize, float spacing) {
+
161  ::DrawTextEx(font, text.c_str(), position, fontSize, spacing, *this);
+
162  return *this;
+
163  }
+
164 
+
165  inline Color& DrawText(
+
166  const ::Font& font,
+
167  const std::string& text,
+
168  ::Rectangle rec,
+
169  float fontSize,
+
170  float spacing,
+
171  bool wordWrap = false) {
+
172  ::DrawTextRec(font, text.c_str(), rec, fontSize, spacing, wordWrap, *this);
+
173  return *this;
+
174  }
+
175 
+
176  inline Color& DrawRectangle(int posX, int posY, int width, int height) {
+
177  ::DrawRectangle(posX, posY, width, height, *this);
+
178  return *this;
+
179  }
+
180 
+
181  inline Color& DrawRectangle(::Vector2 position, ::Vector2 size) {
+
182  ::DrawRectangleV(position, size, *this);
+
183  return *this;
+
184  }
+
185 
+
186  inline Color& DrawRectangle(::Rectangle rec) {
+
187  ::DrawRectangleRec(rec, *this);
+
188  return *this;
+
189  }
+
190 
+
191  inline Color& DrawRectangle(::Rectangle rec, ::Vector2 origin, float rotation) {
+
192  ::DrawRectanglePro(rec, origin, rotation, *this);
+
193  return *this;
+
194  }
+
195 
+
196  inline Color& DrawRectangleLines(int posX, int posY, int width, int height) {
+
197  ::DrawRectangleLines(posX, posY, width, height, *this);
+
198  return *this;
+
199  }
+
200 
+
201  inline Color& DrawRectangleLines(::Rectangle rec, int lineThick) {
+
202  ::DrawRectangleLinesEx(rec, lineThick, *this);
+
203  return *this;
+
204  }
+
205 
+
209  Color Alpha(float alpha) const {
+
210  return ::ColorAlpha(*this, alpha);
+
211  }
+
212 
+
216  Color AlphaBlend(::Color dst, ::Color tint) const {
+
217  return ::ColorAlphaBlend(dst, *this, tint);
+
218  }
+
219 
+
220  inline static Color LightGray() { return LIGHTGRAY; }
+
221  inline static Color Gray() { return GRAY; }
+
222  inline static Color DarkGray() { return DARKGRAY; }
+
223  inline static Color Yellow() { return YELLOW; }
+
224  inline static Color Gold() { return GOLD; }
+
225  inline static Color Orange() { return ORANGE; }
+
226  inline static Color Pink() { return PINK; }
+
227  inline static Color Red() { return RED; }
+
228  inline static Color Maroon() { return MAROON; }
+
229  inline static Color Green() { return GREEN; }
+
230  inline static Color Lime() { return LIME; }
+
231  inline static Color DarkGreen() { return DARKGREEN; }
+
232  inline static Color SkyBlue() { return SKYBLUE; }
+
233  inline static Color Blue() { return BLUE; }
+
234  inline static Color DarkBlue() { return DARKBLUE; }
+
235  inline static Color Purple() { return PURPLE; }
+
236  inline static Color Violet() { return VIOLET; }
+
237  inline static Color DarkPurple() { return DARKPURPLE; }
+
238  inline static Color Beige() { return BEIGE; }
+
239  inline static Color Brown() { return BROWN; }
+
240  inline static Color DarkBrown() { return DARKBROWN; }
+
241  inline static Color White() { return WHITE; }
+
242  inline static Color Black() { return BLACK; }
+
243  inline static Color Blank() { return BLANK; }
+
244  inline static Color Magenta() { return MAGENTA; }
+
245  inline static Color RayWhite() { return RAYWHITE; }
+
246 
+
247  private:
+
248  inline void set(const ::Color& color) {
+
249  r = color.r;
+
250  g = color.g;
+
251  b = color.b;
+
252  a = color.a;
+
253  }
+
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:7
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::ClearBackground
Color & ClearBackground()
Set background color (framebuffer clear color)
Definition: Color.hpp:108
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::Color::Color
Color(::Vector3 hsv)
Returns a Color from HSV values.
Definition: Color.hpp:34
+
raylib::Color::ToInt
int ToInt() const
Returns hexadecimal value for a Color.
Definition: Color.hpp:63
+
raylib::Color::ToHSV
Vector3 ToHSV() const
Returns HSV values for a Color.
Definition: Color.hpp:91
+
raylib::Color::Color
Color(::Vector3 hsv)
Returns a Color from HSV values.
Definition: Color.hpp:35
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
+
raylib::Color::DrawPixel
Color & DrawPixel(::Vector2 pos)
Draw a pixel.
Definition: Color.hpp:121
+
raylib::Color::Color
Color(::Vector4 normalized)
Returns Color from normalized values [0..1].
Definition: Color.hpp:56
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:208
-
raylib::Color::AlphaBlend
Color AlphaBlend(::Color dst, ::Color tint) const
Returns src alpha-blended into dst color with tint.
Definition: Color.hpp:215
-
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::Color
Color(int hexValue)
Get Color structure from hexadecimal value.
Definition: Color.hpp:48
+
raylib::Color::Color
Color()
Black.
Definition: Color.hpp:30
+
raylib::Color::FromHSV
::Color FromHSV(float hue, float saturation, float value)
Returns a Color from HSV values.
Definition: Color.hpp:42
+
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::Normalize
Vector4 Normalize() const
Returns Color normalized as float [0..1].
Definition: Color.hpp:84
+
raylib::Color::DrawLine
Color & DrawLine(int startPosX, int startPosY, int endPosX, int endPosY)
Draw a line.
Definition: Color.hpp:129
+
raylib::Color::Fade
Color Fade(float alpha) const
Returns color with alpha applied, alpha goes from 0.0f to 1.0f.
Definition: Color.hpp:77
+
raylib::Color::Color
Color(int hexValue)
Get Color structure from hexadecimal value.
Definition: Color.hpp:49
diff --git a/docs/_font_8hpp_source.html b/docs/_font_8hpp_source.html index 1944282..17c8df6 100644 --- a/docs/_font_8hpp_source.html +++ b/docs/_font_8hpp_source.html @@ -102,7 +102,7 @@ $(function() {
32  set(::LoadFontFromImage(image, key, firstChar));
33  }
34 
-
35  Font(const std::string& fileType, const unsigned char *fileData, int dataSize, int fontSize,
+
35  Font(const std::string& fileType, const unsigned char* fileData, int dataSize, int fontSize,
36  int *fontChars, int charsCount) {
37  set(::LoadFontFromMemory(fileType.c_str(), fileData, dataSize, fontSize, fontChars,
38  charsCount));
@@ -197,7 +197,7 @@ $(function() {
raylib::Font::DrawText
Font & DrawText(const std::string &text, ::Rectangle rec, float fontSize, float spacing, bool wordWrap, ::Color tint, int selectStart, int selectLength, ::Color selectText, ::Color selectBack)
Draw text using font inside rectangle limits with support for text selection.
Definition: Font.hpp:79
diff --git a/docs/_functions_8hpp_source.html b/docs/_functions_8hpp_source.html index ed5dc19..8559987 100644 --- a/docs/_functions_8hpp_source.html +++ b/docs/_functions_8hpp_source.html @@ -261,7 +261,7 @@ $(function() {
raylib::GetClipboardText
static std::string GetClipboardText()
Get clipboard text content.
Definition: Functions.hpp:52
diff --git a/docs/_gamepad_8hpp_source.html b/docs/_gamepad_8hpp_source.html index 9f050ee..bbab148 100644 --- a/docs/_gamepad_8hpp_source.html +++ b/docs/_gamepad_8hpp_source.html @@ -173,7 +173,7 @@ $(function() {
raylib::Gamepad::IsAvailable
static bool IsAvailable(int number)
Detect if a gamepad is available.
Definition: Gamepad.hpp:44
diff --git a/docs/_image_8hpp_source.html b/docs/_image_8hpp_source.html index c376b2f..9fc2d92 100644 --- a/docs/_image_8hpp_source.html +++ b/docs/_image_8hpp_source.html @@ -406,7 +406,7 @@ $(function() {
479  return *this;
480  }
481 
-
482  inline Image& DrawRectangleLines(::Rectangle rec, int thick,
+
482  inline Image& DrawRectangleLines(::Rectangle rec, int thick = 1,
483  ::Color color = {255, 255, 255, 255}) {
484  ::ImageDrawRectangleLines(this, rec, thick, color);
485  return *this;
@@ -465,18 +465,26 @@ $(function() {
556  return LoadTexture();
557  }
558 
-
559  private:
-
560  inline void set(const ::Image& image) {
-
561  data = image.data;
-
562  width = image.width;
-
563  height = image.height;
-
564  mipmaps = image.mipmaps;
-
565  format = image.format;
-
566  }
-
567 };
-
568 } // namespace raylib
-
569 
-
570 #endif // RAYLIB_CPP_INCLUDE_IMAGE_HPP_
+
562  static int GetPixelDataSize(int width, int height, int format = PIXELFORMAT_UNCOMPRESSED_R32G32B32A32) {
+
563  return ::GetPixelDataSize(width, height, format);
+
564  }
+
565 
+
571  int GetPixelDataSize() {
+
572  return ::GetPixelDataSize(width, height, format);
+
573  }
+
574 
+
575  private:
+
576  inline void set(const ::Image& image) {
+
577  data = image.data;
+
578  width = image.width;
+
579  height = image.height;
+
580  mipmaps = image.mipmaps;
+
581  format = image.format;
+
582  }
+
583 };
+
584 } // namespace raylib
+
585 
+
586 #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:323
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:7
@@ -521,12 +529,14 @@ $(function() {
raylib::Image::GetAlphaBorder
Rectangle GetAlphaBorder(float threshold) const
Get image alpha border rectangle.
Definition: Image.hpp:417
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
raylib::Image::GradientH
::Image GradientH(int width, int height, ::Color left, ::Color right)
Generate image: horizontal gradient.
Definition: Image.hpp:84
+
raylib::Image::GetPixelDataSize
int GetPixelDataSize()
Returns the pixel data size of the image.
Definition: Image.hpp:571
raylib::Image::LoadAnim
void LoadAnim(const std::string &fileName, int *frames)
Load image sequence from file (frames appended to image.data).
Definition: Image.hpp:152
raylib::Image::Load
void Load(const std::string &fileName)
Load image from file into CPU memory (RAM)
Definition: Image.hpp:138
raylib::Image::Color
::Image Color(int width, int height, ::Color color={255, 255, 255, 255})
Generate image: plain color.
Definition: Image.hpp:70
raylib::Image::AlphaCrop
Image & AlphaCrop(float threshold)
Crop image depending on alpha value.
Definition: Image.hpp:245
raylib::Image::Resize
Image & Resize(int newWidth, int newHeight)
Resize and image to new size.
Definition: Image.hpp:290
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:99
+
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:562
raylib::Image::Unload
void Unload()
Unload image from CPU memory (RAM)
Definition: Image.hpp:169
raylib::Image::FlipHorizontal
Image & FlipHorizontal()
Flip image horizontally.
Definition: Image.hpp:339
raylib::Image::FromImage
inline ::Image FromImage(::Rectangle rec)
Create an image from another image piece.
Definition: Image.hpp:214
@@ -539,7 +549,7 @@ $(function() {
raylib::Image::ColorReplace
Image & ColorReplace(::Color color, ::Color replace)
Modify image color: replace color.
Definition: Image.hpp:407
diff --git a/docs/_material_8hpp_source.html b/docs/_material_8hpp_source.html index 67ec50a..25cffa4 100644 --- a/docs/_material_8hpp_source.html +++ b/docs/_material_8hpp_source.html @@ -146,7 +146,7 @@ $(function() {
raylib::Material
Material type (generic)
Definition: Material.hpp:14
diff --git a/docs/_matrix_8hpp_source.html b/docs/_matrix_8hpp_source.html index 5cabd98..33dd75b 100644 --- a/docs/_matrix_8hpp_source.html +++ b/docs/_matrix_8hpp_source.html @@ -296,7 +296,7 @@ $(function() {
raylib::Matrix::Trace
float Trace() const
Returns the trace of the matrix (sum of the values along the diagonal)
Definition: Matrix.hpp:93
diff --git a/docs/_mesh_8hpp_source.html b/docs/_mesh_8hpp_source.html index b804935..7e54606 100644 --- a/docs/_mesh_8hpp_source.html +++ b/docs/_mesh_8hpp_source.html @@ -267,7 +267,7 @@ $(function() {
raylib::Mesh::Plane
::Mesh Plane(float width, float length, int resX, int resZ)
Generate plane mesh (with subdivisions)
Definition: Mesh.hpp:46
diff --git a/docs/_model_8hpp_source.html b/docs/_model_8hpp_source.html index a16e41b..d2a8c24 100644 --- a/docs/_model_8hpp_source.html +++ b/docs/_model_8hpp_source.html @@ -218,7 +218,7 @@ $(function() {
raylib::Model::UnloadKeepMeshes
Model & UnloadKeepMeshes()
Unload model (but not meshes) from memory (RAM and/or VRAM)
Definition: Model.hpp:61
diff --git a/docs/_model_animation_8hpp_source.html b/docs/_model_animation_8hpp_source.html index 3849bfe..51b8f1a 100644 --- a/docs/_model_animation_8hpp_source.html +++ b/docs/_model_animation_8hpp_source.html @@ -141,7 +141,7 @@ $(function() {
raylib::ModelAnimation
Model animation.
Definition: ModelAnimation.hpp:15
diff --git a/docs/_mouse_8hpp_source.html b/docs/_mouse_8hpp_source.html index 988653f..6481e9b 100644 --- a/docs/_mouse_8hpp_source.html +++ b/docs/_mouse_8hpp_source.html @@ -159,7 +159,7 @@ $(function() {
raylib::Mouse::IsButtonReleased
static bool IsButtonReleased(int button)
Detect if a mouse button has been released once.
Definition: Mouse.hpp:30
diff --git a/docs/_music_8hpp_source.html b/docs/_music_8hpp_source.html index 5fff28f..3ffeef7 100644 --- a/docs/_music_8hpp_source.html +++ b/docs/_music_8hpp_source.html @@ -192,7 +192,7 @@ $(function() {
raylib::Music::GetTimePlayed
float GetTimePlayed() const
Get current music time played (in seconds)
Definition: Music.hpp:131
diff --git a/docs/_physics_8hpp_source.html b/docs/_physics_8hpp_source.html index 88cea7e..f786531 100644 --- a/docs/_physics_8hpp_source.html +++ b/docs/_physics_8hpp_source.html @@ -195,7 +195,7 @@ $(function() {
raylib::Vector2
Vector2 type.
Definition: Vector2.hpp:16
diff --git a/docs/_ray_8hpp_source.html b/docs/_ray_8hpp_source.html index 3cb9867..a6cd0bf 100644 --- a/docs/_ray_8hpp_source.html +++ b/docs/_ray_8hpp_source.html @@ -158,7 +158,7 @@ $(function() {
raylib::Ray::GetCollisionGround
RayHitInfo GetCollisionGround(float groundHeight) const
Get collision info between ray and ground plane (Y-normal plane)
Definition: Ray.hpp:82
diff --git a/docs/_ray_hit_info_8hpp_source.html b/docs/_ray_hit_info_8hpp_source.html index 82c8bea..7eda154 100644 --- a/docs/_ray_hit_info_8hpp_source.html +++ b/docs/_ray_hit_info_8hpp_source.html @@ -138,7 +138,7 @@ $(function() {
raylib::RayHitInfo::RayHitInfo
RayHitInfo(const ::Ray &ray, const ::Model &model)
Get collision info between ray and model.
Definition: RayHitInfo.hpp:34
diff --git a/docs/_rectangle_8hpp_source.html b/docs/_rectangle_8hpp_source.html index 51b89e8..fb510c2 100644 --- a/docs/_rectangle_8hpp_source.html +++ b/docs/_rectangle_8hpp_source.html @@ -230,7 +230,7 @@ $(function() {
raylib::Rectangle::Draw
Rectangle & Draw(::Color color)
Draw a color-filled rectangle.
Definition: Rectangle.hpp:49
diff --git a/docs/_render_texture_8hpp_source.html b/docs/_render_texture_8hpp_source.html index 46f9b60..7616303 100644 --- a/docs/_render_texture_8hpp_source.html +++ b/docs/_render_texture_8hpp_source.html @@ -138,7 +138,7 @@ $(function() {
raylib::Texture
Texture type.
Definition: Texture.hpp:15
diff --git a/docs/_shader_8hpp_source.html b/docs/_shader_8hpp_source.html index f90701f..ee9ee45 100644 --- a/docs/_shader_8hpp_source.html +++ b/docs/_shader_8hpp_source.html @@ -183,7 +183,7 @@ $(function() {
raylib::Shader::SetValue
Shader & SetValue(int uniformLoc, const ::Texture2D &texture)
Set shader uniform value for texture.
Definition: Shader.hpp:127
diff --git a/docs/_sound_8hpp_source.html b/docs/_sound_8hpp_source.html index 6cbe604..5ef1105 100644 --- a/docs/_sound_8hpp_source.html +++ b/docs/_sound_8hpp_source.html @@ -111,81 +111,87 @@ $(function() {
49  return *this;
50  }
51 
-
55  inline void Unload() {
-
56  ::UnloadSound(*this);
-
57  }
-
58 
-
62  inline Sound& Play() {
-
63  ::PlaySound(*this);
-
64  return *this;
+
55  inline Sound& Update(const void *data) {
+
56  ::UpdateSound(*this, data, sampleCount);
+
57  return *this;
+
58  }
+
59 
+
63  inline void Unload() {
+
64  ::UnloadSound(*this);
65  }
66 
-
70  inline Sound& Stop() {
-
71  ::StopSound(*this);
+
70  inline Sound& Play() {
+
71  ::PlaySound(*this);
72  return *this;
73  }
74 
-
78  inline Sound& Pause() {
-
79  ::PauseSound(*this);
+
78  inline Sound& Stop() {
+
79  ::StopSound(*this);
80  return *this;
81  }
82 
-
86  inline Sound& Resume() {
-
87  ::ResumeSound(*this);
+
86  inline Sound& Pause() {
+
87  ::PauseSound(*this);
88  return *this;
89  }
90 
-
94  inline Sound& PlayMulti() {
-
95  ::PlaySoundMulti(*this);
+
94  inline Sound& Resume() {
+
95  ::ResumeSound(*this);
96  return *this;
97  }
98 
-
102  inline Sound& StopMulti() {
-
103  ::StopSoundMulti();
+
102  inline Sound& PlayMulti() {
+
103  ::PlaySoundMulti(*this);
104  return *this;
105  }
106 
-
110  inline bool IsPlaying() const {
-
111  return ::IsSoundPlaying(*this);
-
112  }
-
113 
-
117  inline Sound& SetVolume(float volume) {
-
118  ::SetSoundVolume(*this, volume);
-
119  return *this;
+
110  inline Sound& StopMulti() {
+
111  ::StopSoundMulti();
+
112  return *this;
+
113  }
+
114 
+
118  inline bool IsPlaying() const {
+
119  return ::IsSoundPlaying(*this);
120  }
121 
-
125  inline Sound& SetPitch(float pitch) {
-
126  ::SetSoundPitch(*this, pitch);
+
125  inline Sound& SetVolume(float volume) {
+
126  ::SetSoundVolume(*this, volume);
127  return *this;
128  }
129 
-
130  private:
-
131  inline void set(const ::Sound& sound) {
-
132  sampleCount = sound.sampleCount;
-
133  stream = sound.stream;
-
134  }
-
135 };
-
136 } // namespace raylib
+
133  inline Sound& SetPitch(float pitch) {
+
134  ::SetSoundPitch(*this, pitch);
+
135  return *this;
+
136  }
137 
-
138 #endif // RAYLIB_CPP_INCLUDE_SOUND_HPP_
+
138  private:
+
139  inline void set(const ::Sound& sound) {
+
140  sampleCount = sound.sampleCount;
+
141  stream = sound.stream;
+
142  }
+
143 };
+
144 } // namespace raylib
+
145 
+
146 #endif // RAYLIB_CPP_INCLUDE_SOUND_HPP_
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:7
raylib::Sound::Update
Sound & Update(const void *data, int sampleCount)
Update sound buffer with new data.
Definition: Sound.hpp:47
-
raylib::Sound::StopMulti
Sound & StopMulti()
Stop any sound playing (using multichannel buffer pool)
Definition: Sound.hpp:102
-
raylib::Sound::SetVolume
Sound & SetVolume(float volume)
Set volume for a sound (1.0 is max level)
Definition: Sound.hpp:117
+
raylib::Sound::StopMulti
Sound & StopMulti()
Stop any sound playing (using multichannel buffer pool)
Definition: Sound.hpp:110
+
raylib::Sound::SetVolume
Sound & SetVolume(float volume)
Set volume for a sound (1.0 is max level)
Definition: Sound.hpp:125
raylib::Sound
Wave/Sound management functions.
Definition: Sound.hpp:18
-
raylib::Sound::Pause
Sound & Pause()
Pause a sound.
Definition: Sound.hpp:78
-
raylib::Sound::Resume
Sound & Resume()
Resume a paused sound.
Definition: Sound.hpp:86
-
raylib::Sound::Stop
Sound & Stop()
Stop playing a sound.
Definition: Sound.hpp:70
-
raylib::Sound::IsPlaying
bool IsPlaying() const
Check if a sound is currently playing.
Definition: Sound.hpp:110
-
raylib::Sound::Unload
void Unload()
Unload sound.
Definition: Sound.hpp:55
+
raylib::Sound::Pause
Sound & Pause()
Pause a sound.
Definition: Sound.hpp:86
+
raylib::Sound::Resume
Sound & Resume()
Resume a paused sound.
Definition: Sound.hpp:94
+
raylib::Sound::Stop
Sound & Stop()
Stop playing a sound.
Definition: Sound.hpp:78
+
raylib::Sound::IsPlaying
bool IsPlaying() const
Check if a sound is currently playing.
Definition: Sound.hpp:118
+
raylib::Sound::Unload
void Unload()
Unload sound.
Definition: Sound.hpp:63
raylib::AudioStream
AudioStream management functions.
Definition: AudioStream.hpp:11
-
raylib::Sound::SetPitch
Sound & SetPitch(float pitch)
Set pitch for a sound (1.0 is base level)
Definition: Sound.hpp:125
-
raylib::Sound::Play
Sound & Play()
Play a sound.
Definition: Sound.hpp:62
-
raylib::Sound::PlayMulti
Sound & PlayMulti()
Play a sound (using multichannel buffer pool)
Definition: Sound.hpp:94
+
raylib::Sound::Update
Sound & Update(const void *data)
Update sound buffer with new data, assuming it's the same sample count.
Definition: Sound.hpp:55
+
raylib::Sound::SetPitch
Sound & SetPitch(float pitch)
Set pitch for a sound (1.0 is base level)
Definition: Sound.hpp:133
+
raylib::Sound::Play
Sound & Play()
Play a sound.
Definition: Sound.hpp:70
+
raylib::Sound::PlayMulti
Sound & PlayMulti()
Play a sound (using multichannel buffer pool)
Definition: Sound.hpp:102
diff --git a/docs/_text_8hpp_source.html b/docs/_text_8hpp_source.html index 57f9bd7..ae651c1 100644 --- a/docs/_text_8hpp_source.html +++ b/docs/_text_8hpp_source.html @@ -120,7 +120,7 @@ $(function() {
raylib::TextLength
static unsigned int TextLength(const std::string &text)
Check if two text string are equal.
Definition: Text.hpp:49
diff --git a/docs/_texture_8hpp_source.html b/docs/_texture_8hpp_source.html index d6c28b0..0e0beb1 100644 --- a/docs/_texture_8hpp_source.html +++ b/docs/_texture_8hpp_source.html @@ -213,8 +213,8 @@ $(function() {
193  }
194 
195  inline Texture& Draw(::Vector3 position, float width, float height, float length,
-
196  ::Color color = {255, 255, 255, 255}) {
-
197  ::DrawCubeTexture(*this, position, width, height, length, color);
+
196  ::Color tint = {255, 255, 255, 255}) {
+
197  ::DrawCubeTexture(*this, position, width, height, length, tint);
198  return *this;
199  }
200 
@@ -231,34 +231,34 @@ $(function() {
211  return *this;
212  }
213 
-
217  inline Texture& SetMaterial(::Material *material, int mapType) {
+
217  inline Texture& SetMaterial(::Material *material, int mapType = MATERIAL_MAP_NORMAL) {
218  ::SetMaterialTexture(material, mapType, *this);
219  return *this;
220  }
221 
-
225  static int GetPixelDataSize(int width, int height, int format) {
-
226  return ::GetPixelDataSize(width, height, format);
-
227  }
-
228 
-
229  private:
-
230  inline void set(const ::Texture& texture) {
-
231  id = texture.id;
-
232  width = texture.width;
-
233  height = texture.height;
-
234  mipmaps = texture.mipmaps;
-
235  format = texture.format;
-
236  }
-
237 };
-
238 
-
239 // Create the Texture aliases.
-
240 typedef Texture Texture2D;
-
241 typedef Texture TextureCubemap;
+
222  inline Texture& SetMaterial(const ::Material& material, int mapType = MATERIAL_MAP_NORMAL) {
+
223  ::SetMaterialTexture((::Material*)(&material), mapType, *this);
+
224  return *this;
+
225  }
+
226 
+
227  private:
+
228  inline void set(const ::Texture& texture) {
+
229  id = texture.id;
+
230  width = texture.width;
+
231  height = texture.height;
+
232  mipmaps = texture.mipmaps;
+
233  format = texture.format;
+
234  }
+
235 };
+
236 
+
237 // Create the Texture aliases.
+
238 typedef Texture Texture2D;
+
239 typedef Texture TextureCubemap;
+
240 
+
241 } // namespace raylib
242 
-
243 } // namespace raylib
-
244 
-
245 #endif // RAYLIB_CPP_INCLUDE_TEXTURE_HPP_
+
243 #endif // RAYLIB_CPP_INCLUDE_TEXTURE_HPP_
-
raylib::Texture::GetPixelDataSize
static int GetPixelDataSize(int width, int height, int format)
Get pixel data size in bytes for certain format.
Definition: Texture.hpp:225
raylib
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:7
raylib::Texture::SetWrap
Texture & SetWrap(int wrapMode)
Set texture wrapping mode.
Definition: Texture.hpp:140
raylib::Texture::Draw
Texture & Draw(int posX, int posY, ::Color tint={255, 255, 255, 255})
Draw a Texture2D.
Definition: Texture.hpp:155
@@ -274,16 +274,16 @@ $(function() {
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
raylib::Texture::GetData
inline ::Image GetData() const
Get pixel data from GPU texture and return an Image.
Definition: Texture.hpp:110
raylib::Texture::Draw
Texture & Draw()
Draws the texture at the top left corner of the screen.
Definition: Texture.hpp:148
+
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:217
raylib::Texture::UpdateRec
Texture & UpdateRec(::Rectangle rec, const void *pixels)
Update GPU texture rectangle with new data.
Definition: Texture.hpp:102
raylib::Texture
Texture type.
Definition: Texture.hpp:15
raylib::Texture::Unload
void Unload()
Unload texture from GPU memory (VRAM)
Definition: Texture.hpp:87
raylib::Texture::GenMipmaps
Texture & GenMipmaps()
Generate GPU mipmaps for a texture.
Definition: Texture.hpp:124
raylib::Material
Material type (generic)
Definition: Material.hpp:14
-
raylib::Texture::SetMaterial
Texture & SetMaterial(::Material *material, int mapType)
Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
Definition: Texture.hpp:217
raylib::Texture::Update
Texture & Update(const void *pixels)
Update GPU texture with new data.
Definition: Texture.hpp:94
diff --git a/docs/_vector2_8hpp_source.html b/docs/_vector2_8hpp_source.html index 79b472d..abea8db 100644 --- a/docs/_vector2_8hpp_source.html +++ b/docs/_vector2_8hpp_source.html @@ -364,7 +364,7 @@ $(function() {
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:313
diff --git a/docs/_vector3_8hpp_source.html b/docs/_vector3_8hpp_source.html index dbfc5fd..d4b5058 100644 --- a/docs/_vector3_8hpp_source.html +++ b/docs/_vector3_8hpp_source.html @@ -382,7 +382,7 @@ $(function() {
raylib::Vector3::CheckCollision
bool CheckCollision(float radius1, const ::Vector3 &center2, float radius2)
Detect collision between two spheres.
Definition: Vector3.hpp:297
diff --git a/docs/_vector4_8hpp_source.html b/docs/_vector4_8hpp_source.html index c71eb6c..82e82f7 100644 --- a/docs/_vector4_8hpp_source.html +++ b/docs/_vector4_8hpp_source.html @@ -238,7 +238,7 @@ $(function() {
raylib::Color
Color type, RGBA (32bit)
Definition: Color.hpp:14
diff --git a/docs/_vr_stereo_config_8hpp_source.html b/docs/_vr_stereo_config_8hpp_source.html index 1186aa2..b439b8d 100644 --- a/docs/_vr_stereo_config_8hpp_source.html +++ b/docs/_vr_stereo_config_8hpp_source.html @@ -139,7 +139,7 @@ $(function() {
raylib::VrStereoConfig::~VrStereoConfig
~VrStereoConfig()
Unload VR stereo config.
Definition: VrStereoConfig.hpp:27
diff --git a/docs/_wave_8hpp_source.html b/docs/_wave_8hpp_source.html index e1540b7..2356187 100644 --- a/docs/_wave_8hpp_source.html +++ b/docs/_wave_8hpp_source.html @@ -201,7 +201,7 @@ $(function() {
raylib::Wave::LoadSound
inline ::Sound LoadSound()
Load sound from wave data.
Definition: Wave.hpp:128
diff --git a/docs/_window_8hpp_source.html b/docs/_window_8hpp_source.html index c9bb39c..a472baf 100644 --- a/docs/_window_8hpp_source.html +++ b/docs/_window_8hpp_source.html @@ -329,7 +329,7 @@ $(function() {
raylib::Window
Window and Graphics Device Functions.
Definition: Window.hpp:12
diff --git a/docs/annotated.html b/docs/annotated.html index 9c26038..34e60b3 100644 --- a/docs/annotated.html +++ b/docs/annotated.html @@ -105,7 +105,7 @@ $(function() { diff --git a/docs/classes.html b/docs/classes.html index ee02d36..f5bc1e0 100644 --- a/docs/classes.html +++ b/docs/classes.html @@ -144,7 +144,7 @@ $(function() { diff --git a/docs/classraylib_1_1_audio_device-members.html b/docs/classraylib_1_1_audio_device-members.html index 77abf9c..26628c9 100644 --- a/docs/classraylib_1_1_audio_device-members.html +++ b/docs/classraylib_1_1_audio_device-members.html @@ -83,7 +83,7 @@ $(function() { diff --git a/docs/classraylib_1_1_audio_device.html b/docs/classraylib_1_1_audio_device.html index 4eaf5e1..1afe572 100644 --- a/docs/classraylib_1_1_audio_device.html +++ b/docs/classraylib_1_1_audio_device.html @@ -150,7 +150,7 @@ bool  diff --git a/docs/classraylib_1_1_audio_stream-members.html b/docs/classraylib_1_1_audio_stream-members.html index ec2be40..e0cdc63 100644 --- a/docs/classraylib_1_1_audio_stream-members.html +++ b/docs/classraylib_1_1_audio_stream-members.html @@ -100,7 +100,7 @@ $(function() { diff --git a/docs/classraylib_1_1_audio_stream.html b/docs/classraylib_1_1_audio_stream.html index 332584a..bec38ac 100644 --- a/docs/classraylib_1_1_audio_stream.html +++ b/docs/classraylib_1_1_audio_stream.html @@ -435,7 +435,7 @@ static void  diff --git a/docs/classraylib_1_1_bounding_box-members.html b/docs/classraylib_1_1_bounding_box-members.html index cb929ef..7d877d7 100644 --- a/docs/classraylib_1_1_bounding_box-members.html +++ b/docs/classraylib_1_1_bounding_box-members.html @@ -76,20 +76,21 @@ $(function() { - - - - - - - - - - + + + + + + + + + + +
BoundingBox(const ::BoundingBox &box) (defined in raylib::BoundingBox)raylib::BoundingBoxinline
BoundingBox(const ::Mesh &mesh)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
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(::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
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 0da2b34..8471098 100644 --- a/docs/classraylib_1_1_bounding_box.html +++ b/docs/classraylib_1_1_bounding_box.html @@ -83,6 +83,9 @@ Public Member Functions  BoundingBox (::Vector3 Min, ::Vector3 Max)   + + BoundingBox (::Vector3 minMax) +   BoundingBox (const ::BoundingBox &box)   @@ -153,7 +156,7 @@ bool 
Returns
The max value of the object.
-

Definition at line 30 of file BoundingBox.hpp.

+

Definition at line 35 of file BoundingBox.hpp.

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

Definition at line 29 of file BoundingBox.hpp.

+

Definition at line 34 of file BoundingBox.hpp.

@@ -219,7 +222,7 @@ bool Definition at line 30 of file BoundingBox.hpp.

+

Definition at line 35 of file BoundingBox.hpp.

@@ -255,14 +258,14 @@ bool Definition at line 29 of file BoundingBox.hpp.

+

Definition at line 34 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 0d52920..de88680 100644 --- a/docs/classraylib_1_1_camera2_d-members.html +++ b/docs/classraylib_1_1_camera2_d-members.html @@ -94,7 +94,7 @@ $(function() { diff --git a/docs/classraylib_1_1_camera2_d.html b/docs/classraylib_1_1_camera2_d.html index e0fe394..c67aab3 100644 --- a/docs/classraylib_1_1_camera2_d.html +++ b/docs/classraylib_1_1_camera2_d.html @@ -404,7 +404,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 6221087..c7db18c 100644 --- a/docs/classraylib_1_1_camera3_d-members.html +++ b/docs/classraylib_1_1_camera3_d-members.html @@ -103,7 +103,7 @@ $(function() { diff --git a/docs/classraylib_1_1_camera3_d.html b/docs/classraylib_1_1_camera3_d.html index 523f375..e87a984 100644 --- a/docs/classraylib_1_1_camera3_d.html +++ b/docs/classraylib_1_1_camera3_d.html @@ -506,7 +506,7 @@ Public Member Functions diff --git a/docs/classraylib_1_1_color-members.html b/docs/classraylib_1_1_color-members.html index e42bcc7..f4811f4 100644 --- a/docs/classraylib_1_1_color-members.html +++ b/docs/classraylib_1_1_color-members.html @@ -83,68 +83,67 @@ $(function() { Brown() (defined in raylib::Color)raylib::Colorinlinestatic ClearBackground()raylib::Colorinline Color(const ::Color &color) (defined in raylib::Color)raylib::Colorinline - Color(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) (defined in raylib::Color)raylib::Colorinline - Color(unsigned char red, unsigned char green, unsigned char blue) (defined in raylib::Color)raylib::Colorinline - Color()raylib::Colorinline - Color(::Vector3 hsv)raylib::Colorinline - Color(int hexValue)raylib::Colorinline - Color(::Vector4 normalized)raylib::Colorinline - DarkBlue() (defined in raylib::Color)raylib::Colorinlinestatic - DarkBrown() (defined in raylib::Color)raylib::Colorinlinestatic - DarkGray() (defined in raylib::Color)raylib::Colorinlinestatic - DarkGreen() (defined in raylib::Color)raylib::Colorinlinestatic - DarkPurple() (defined in raylib::Color)raylib::Colorinlinestatic - DrawLine(int startPosX, int startPosY, int endPosX, int endPosY)raylib::Colorinline - DrawLine(::Vector2 startPos, ::Vector2 endPos) (defined in raylib::Color)raylib::Colorinline - DrawLine(::Vector2 startPos, ::Vector2 endPos, float thick) (defined in raylib::Color)raylib::Colorinline - DrawLineBezier(::Vector2 startPos, ::Vector2 endPos, float thick) (defined in raylib::Color)raylib::Colorinline - DrawLineStrip(::Vector2 *points, int numPoints) (defined in raylib::Color)raylib::Colorinline - DrawPixel(int x, int y) (defined in raylib::Color)raylib::Colorinline - DrawPixel(::Vector2 pos)raylib::Colorinline - DrawRectangle(int posX, int posY, int width, int height) (defined in raylib::Color)raylib::Colorinline - DrawRectangle(::Vector2 position, ::Vector2 size) (defined in raylib::Color)raylib::Colorinline - DrawRectangle(::Rectangle rec) (defined in raylib::Color)raylib::Colorinline - DrawRectangle(::Rectangle rec, ::Vector2 origin, float rotation) (defined in raylib::Color)raylib::Colorinline - DrawRectangleLines(int posX, int posY, int width, int height) (defined in raylib::Color)raylib::Colorinline - DrawRectangleLines(::Rectangle rec, int lineThick) (defined in raylib::Color)raylib::Colorinline - DrawText(const std::string &text, int posX, int posY, int fontSize) (defined in raylib::Color)raylib::Colorinline - DrawText(const ::Font &font, const std::string &text, ::Vector2 position, float fontSize, float spacing) (defined in raylib::Color)raylib::Colorinline - DrawText(const ::Font &font, const std::string &text, ::Rectangle rec, float fontSize, float spacing, bool wordWrap=false) (defined in raylib::Color)raylib::Colorinline - Fade(float alpha) constraylib::Colorinline - FromHSV(float hue, float saturation, float value)raylib::Colorinlinestatic - GetA() constraylib::Colorinline - GetB() constraylib::Colorinline - GetG() constraylib::Colorinline - GetR() constraylib::Colorinline - Gold() (defined in raylib::Color)raylib::Colorinlinestatic - Gray() (defined in raylib::Color)raylib::Colorinlinestatic - Green() (defined in raylib::Color)raylib::Colorinlinestatic - LightGray() (defined in raylib::Color)raylib::Colorinlinestatic - Lime() (defined in raylib::Color)raylib::Colorinlinestatic - Magenta() (defined in raylib::Color)raylib::Colorinlinestatic - Maroon() (defined in raylib::Color)raylib::Colorinlinestatic - Normalize() constraylib::Colorinline - operator int() constraylib::Colorinline - operator=(const ::Color &color) (defined in raylib::Color)raylib::Colorinline - Orange() (defined in raylib::Color)raylib::Colorinlinestatic - Pink() (defined in raylib::Color)raylib::Colorinlinestatic - Purple() (defined in raylib::Color)raylib::Colorinlinestatic - RayWhite() (defined in raylib::Color)raylib::Colorinlinestatic - Red() (defined in raylib::Color)raylib::Colorinlinestatic - SetA(unsigned char value)raylib::Colorinline - SetB(unsigned char value)raylib::Colorinline - SetG(unsigned char value)raylib::Colorinline - SetR(unsigned char value)raylib::Colorinline - SkyBlue() (defined in raylib::Color)raylib::Colorinlinestatic - ToHSV() constraylib::Colorinline - ToInt() constraylib::Colorinline - Violet() (defined in raylib::Color)raylib::Colorinlinestatic - White() (defined in raylib::Color)raylib::Colorinlinestatic - Yellow() (defined in raylib::Color)raylib::Colorinlinestatic + Color(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=255) (defined in raylib::Color)raylib::Colorinline + Color()raylib::Colorinline + Color(::Vector3 hsv)raylib::Colorinline + Color(int hexValue)raylib::Colorinline + Color(::Vector4 normalized)raylib::Colorinline + DarkBlue() (defined in raylib::Color)raylib::Colorinlinestatic + DarkBrown() (defined in raylib::Color)raylib::Colorinlinestatic + DarkGray() (defined in raylib::Color)raylib::Colorinlinestatic + DarkGreen() (defined in raylib::Color)raylib::Colorinlinestatic + DarkPurple() (defined in raylib::Color)raylib::Colorinlinestatic + DrawLine(int startPosX, int startPosY, int endPosX, int endPosY)raylib::Colorinline + DrawLine(::Vector2 startPos, ::Vector2 endPos) (defined in raylib::Color)raylib::Colorinline + DrawLine(::Vector2 startPos, ::Vector2 endPos, float thick) (defined in raylib::Color)raylib::Colorinline + DrawLineBezier(::Vector2 startPos, ::Vector2 endPos, float thick) (defined in raylib::Color)raylib::Colorinline + DrawLineStrip(::Vector2 *points, int numPoints) (defined in raylib::Color)raylib::Colorinline + DrawPixel(int x, int y) (defined in raylib::Color)raylib::Colorinline + DrawPixel(::Vector2 pos)raylib::Colorinline + DrawRectangle(int posX, int posY, int width, int height) (defined in raylib::Color)raylib::Colorinline + DrawRectangle(::Vector2 position, ::Vector2 size) (defined in raylib::Color)raylib::Colorinline + DrawRectangle(::Rectangle rec) (defined in raylib::Color)raylib::Colorinline + DrawRectangle(::Rectangle rec, ::Vector2 origin, float rotation) (defined in raylib::Color)raylib::Colorinline + DrawRectangleLines(int posX, int posY, int width, int height) (defined in raylib::Color)raylib::Colorinline + DrawRectangleLines(::Rectangle rec, int lineThick) (defined in raylib::Color)raylib::Colorinline + DrawText(const std::string &text, int posX, int posY, int fontSize) (defined in raylib::Color)raylib::Colorinline + DrawText(const ::Font &font, const std::string &text, ::Vector2 position, float fontSize, float spacing) (defined in raylib::Color)raylib::Colorinline + DrawText(const ::Font &font, const std::string &text, ::Rectangle rec, float fontSize, float spacing, bool wordWrap=false) (defined in raylib::Color)raylib::Colorinline + Fade(float alpha) constraylib::Colorinline + FromHSV(float hue, float saturation, float value)raylib::Colorinlinestatic + GetA() constraylib::Colorinline + GetB() constraylib::Colorinline + GetG() constraylib::Colorinline + GetR() constraylib::Colorinline + Gold() (defined in raylib::Color)raylib::Colorinlinestatic + Gray() (defined in raylib::Color)raylib::Colorinlinestatic + Green() (defined in raylib::Color)raylib::Colorinlinestatic + LightGray() (defined in raylib::Color)raylib::Colorinlinestatic + Lime() (defined in raylib::Color)raylib::Colorinlinestatic + Magenta() (defined in raylib::Color)raylib::Colorinlinestatic + Maroon() (defined in raylib::Color)raylib::Colorinlinestatic + Normalize() constraylib::Colorinline + operator int() constraylib::Colorinline + operator=(const ::Color &color) (defined in raylib::Color)raylib::Colorinline + Orange() (defined in raylib::Color)raylib::Colorinlinestatic + Pink() (defined in raylib::Color)raylib::Colorinlinestatic + Purple() (defined in raylib::Color)raylib::Colorinlinestatic + RayWhite() (defined in raylib::Color)raylib::Colorinlinestatic + Red() (defined in raylib::Color)raylib::Colorinlinestatic + SetA(unsigned char value)raylib::Colorinline + SetB(unsigned char value)raylib::Colorinline + SetG(unsigned char value)raylib::Colorinline + SetR(unsigned char value)raylib::Colorinline + SkyBlue() (defined in raylib::Color)raylib::Colorinlinestatic + ToHSV() constraylib::Colorinline + ToInt() constraylib::Colorinline + Violet() (defined in raylib::Color)raylib::Colorinlinestatic + White() (defined in raylib::Color)raylib::Colorinlinestatic + Yellow() (defined in raylib::Color)raylib::Colorinlinestatic diff --git a/docs/classraylib_1_1_color.html b/docs/classraylib_1_1_color.html index 82e512d..62a56c1 100644 --- a/docs/classraylib_1_1_color.html +++ b/docs/classraylib_1_1_color.html @@ -100,12 +100,9 @@ Public Member Functions  Color (int hexValue)  Get Color structure from hexadecimal value.
  - - Color (unsigned char red, unsigned char green, unsigned char blue) -  - - Color (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) -  + + Color (unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha=255) +  Color Alpha (float alpha) const  Returns color with alpha applied, alpha goes from 0.0f to 1.0f.
@@ -332,7 +329,7 @@ static Color Retrieves the a value for the object.

Returns
The a value of the object.
-

Definition at line 97 of file Color.hpp.

+

Definition at line 98 of file Color.hpp.

@@ -362,7 +359,7 @@ static Color Retrieves the b value for the object.

Returns
The b value of the object.
-

Definition at line 96 of file Color.hpp.

+

Definition at line 97 of file Color.hpp.

@@ -392,7 +389,7 @@ static Color Retrieves the g value for the object.

Returns
The g value of the object.
-

Definition at line 95 of file Color.hpp.

+

Definition at line 96 of file Color.hpp.

@@ -422,7 +419,7 @@ static Color Retrieves the r value for the object.

Returns
The r value of the object.
-

Definition at line 94 of file Color.hpp.

+

Definition at line 95 of file Color.hpp.

@@ -458,7 +455,7 @@ static Color  -

Definition at line 97 of file Color.hpp.

+

Definition at line 98 of file Color.hpp.

@@ -494,7 +491,7 @@ static Color  -

Definition at line 96 of file Color.hpp.

+

Definition at line 97 of file Color.hpp.

@@ -530,7 +527,7 @@ static Color  -

Definition at line 95 of file Color.hpp.

+

Definition at line 96 of file Color.hpp.

@@ -566,14 +563,14 @@ static Color  -

Definition at line 94 of file Color.hpp.

+

Definition at line 95 of file Color.hpp.

diff --git a/docs/classraylib_1_1_font-members.html b/docs/classraylib_1_1_font-members.html index c8c8480..41a5ac2 100644 --- a/docs/classraylib_1_1_font-members.html +++ b/docs/classraylib_1_1_font-members.html @@ -105,7 +105,7 @@ $(function() { diff --git a/docs/classraylib_1_1_font.html b/docs/classraylib_1_1_font.html index 333da0e..3d83337 100644 --- a/docs/classraylib_1_1_font.html +++ b/docs/classraylib_1_1_font.html @@ -569,7 +569,7 @@ void Unload () diff --git a/docs/classraylib_1_1_gamepad-members.html b/docs/classraylib_1_1_gamepad-members.html index 7eefeb8..39e6ad4 100644 --- a/docs/classraylib_1_1_gamepad-members.html +++ b/docs/classraylib_1_1_gamepad-members.html @@ -96,7 +96,7 @@ $(function() { diff --git a/docs/classraylib_1_1_gamepad.html b/docs/classraylib_1_1_gamepad.html index a511b8e..97e9255 100644 --- a/docs/classraylib_1_1_gamepad.html +++ b/docs/classraylib_1_1_gamepad.html @@ -232,7 +232,7 @@ int number diff --git a/docs/classraylib_1_1_image-members.html b/docs/classraylib_1_1_image-members.html index f0f350b..eb97fa0 100644 --- a/docs/classraylib_1_1_image-members.html +++ b/docs/classraylib_1_1_image-members.html @@ -102,7 +102,7 @@ $(function() { DrawRectangle(int posX, int posY, int width, int height, ::Color color={255, 255, 255, 255}) (defined in raylib::Image)raylib::Imageinline DrawRectangle(Vector2 position, Vector2 size, ::Color color={255, 255, 255, 255}) (defined in raylib::Image)raylib::Imageinline DrawRectangle(::Rectangle rec, ::Color color={255, 255, 255, 255}) (defined in raylib::Image)raylib::Imageinline - DrawRectangleLines(::Rectangle rec, int thick, ::Color color={255, 255, 255, 255}) (defined in raylib::Image)raylib::Imageinline + DrawRectangleLines(::Rectangle rec, int thick=1, ::Color color={255, 255, 255, 255}) (defined in raylib::Image)raylib::Imageinline DrawText(const std::string &text, ::Vector2 position, int fontSize, ::Color color={255, 255, 255, 255}) (defined in raylib::Image)raylib::Imageinline DrawText(const std::string &text, int x, int y, int fontSize, ::Color color={255, 255, 255, 255}) (defined in raylib::Image)raylib::Imageinline DrawText(const ::Font &font, const std::string &text, ::Vector2 position, float fontSize, float spacing, ::Color tint={255, 255, 255, 255}) (defined in raylib::Image)raylib::Imageinline @@ -117,6 +117,8 @@ $(function() { GetFormat() constraylib::Imageinline GetHeight() constraylib::Imageinline GetMipmaps() constraylib::Imageinline + GetPixelDataSize(int width, int height, int format=PIXELFORMAT_UNCOMPRESSED_R32G32B32A32)raylib::Imageinlinestatic + GetPixelDataSize()raylib::Imageinline GetScreenData()raylib::Imageinlinestatic GetSize()raylib::Imageinline GetWidth() constraylib::Imageinline @@ -163,7 +165,7 @@ $(function() { diff --git a/docs/classraylib_1_1_image.html b/docs/classraylib_1_1_image.html index 819909b..cd61911 100644 --- a/docs/classraylib_1_1_image.html +++ b/docs/classraylib_1_1_image.html @@ -194,9 +194,9 @@ inline ::Image  Image & DrawRectangle (Vector2 position, Vector2 size, ::Color color={255, 255, 255, 255})   - -Image & DrawRectangleLines (::Rectangle rec, int thick, ::Color color={255, 255, 255, 255}) -  + +Image & DrawRectangleLines (::Rectangle rec, int thick=1, ::Color color={255, 255, 255, 255}) +  Image & DrawText (const ::Font &font, const std::string &text, ::Vector2 position, float fontSize, float spacing, ::Color tint={255, 255, 255, 255})   @@ -245,6 +245,9 @@ inline ::Image int GetMipmaps () const  Retrieves the mipmaps value for the object. More...
  +int GetPixelDataSize () + Returns the pixel data size of the image. More...
+  inline ::Vector2 GetSize ()  Retrieve the width and height of the image.
@@ -355,6 +358,10 @@ Static Public Member Functions ::Image Color (int width, int height, ::Color color={255, 255, 255, 255})  Generate image: plain color.
  + +static int GetPixelDataSize (int width, int height, int format=PIXELFORMAT_UNCOMPRESSED_R32G32B32A32) + Get pixel data size in bytes for certain format.
+  ::Image GetScreenData ()  Get pixel data from screen buffer and return an Image (screenshot)
@@ -665,6 +672,36 @@ Static Public Member Functions

Definition at line 194 of file Image.hpp.

+ + + +

◆ GetPixelDataSize()

+ +
+
+ + + + + +
+ + + + + + + +
int raylib::Image::GetPixelDataSize ()
+
+inline
+
+ +

Returns the pixel data size of the image.

+
Returns
The pixel data size of the image.
+ +

Definition at line 571 of file Image.hpp.

+
@@ -929,7 +966,7 @@ Static Public Member Functions diff --git a/docs/classraylib_1_1_material-members.html b/docs/classraylib_1_1_material-members.html index a5f3604..ae3c463 100644 --- a/docs/classraylib_1_1_material-members.html +++ b/docs/classraylib_1_1_material-members.html @@ -88,7 +88,7 @@ $(function() { diff --git a/docs/classraylib_1_1_material.html b/docs/classraylib_1_1_material.html index ef2620d..d2efaea 100644 --- a/docs/classraylib_1_1_material.html +++ b/docs/classraylib_1_1_material.html @@ -259,7 +259,7 @@ static std::vector< Materi diff --git a/docs/classraylib_1_1_matrix-members.html b/docs/classraylib_1_1_matrix-members.html index 3e26996..708ac88 100644 --- a/docs/classraylib_1_1_matrix-members.html +++ b/docs/classraylib_1_1_matrix-members.html @@ -139,7 +139,7 @@ $(function() { diff --git a/docs/classraylib_1_1_matrix.html b/docs/classraylib_1_1_matrix.html index 8e7ab22..a66646f 100644 --- a/docs/classraylib_1_1_matrix.html +++ b/docs/classraylib_1_1_matrix.html @@ -1338,7 +1338,7 @@ static Matrix  diff --git a/docs/classraylib_1_1_mesh-members.html b/docs/classraylib_1_1_mesh-members.html index d776dfc..8739e2e 100644 --- a/docs/classraylib_1_1_mesh-members.html +++ b/docs/classraylib_1_1_mesh-members.html @@ -133,7 +133,7 @@ $(function() { diff --git a/docs/classraylib_1_1_mesh.html b/docs/classraylib_1_1_mesh.html index b82b65c..973cebc 100644 --- a/docs/classraylib_1_1_mesh.html +++ b/docs/classraylib_1_1_mesh.html @@ -1308,7 +1308,7 @@ Static Public Member Functions diff --git a/docs/classraylib_1_1_model-members.html b/docs/classraylib_1_1_model-members.html index 51a90f2..d9f1e49 100644 --- a/docs/classraylib_1_1_model-members.html +++ b/docs/classraylib_1_1_model-members.html @@ -110,7 +110,7 @@ $(function() { diff --git a/docs/classraylib_1_1_model.html b/docs/classraylib_1_1_model.html index b3cb978..03a120b 100644 --- a/docs/classraylib_1_1_model.html +++ b/docs/classraylib_1_1_model.html @@ -789,7 +789,7 @@ void  diff --git a/docs/classraylib_1_1_model_animation-members.html b/docs/classraylib_1_1_model_animation-members.html index b34aa29..ac3029e 100644 --- a/docs/classraylib_1_1_model_animation-members.html +++ b/docs/classraylib_1_1_model_animation-members.html @@ -92,7 +92,7 @@ $(function() { diff --git a/docs/classraylib_1_1_model_animation.html b/docs/classraylib_1_1_model_animation.html index 53c9096..c24c2c3 100644 --- a/docs/classraylib_1_1_model_animation.html +++ b/docs/classraylib_1_1_model_animation.html @@ -403,7 +403,7 @@ static std::vector< diff --git a/docs/classraylib_1_1_mouse-members.html b/docs/classraylib_1_1_mouse-members.html index c6d64e6..350cbbd 100644 --- a/docs/classraylib_1_1_mouse-members.html +++ b/docs/classraylib_1_1_mouse-members.html @@ -94,7 +94,7 @@ $(function() { diff --git a/docs/classraylib_1_1_mouse.html b/docs/classraylib_1_1_mouse.html index bc12a2c..6fb4ece 100644 --- a/docs/classraylib_1_1_mouse.html +++ b/docs/classraylib_1_1_mouse.html @@ -142,7 +142,7 @@ static void SetY (int diff --git a/docs/classraylib_1_1_music-members.html b/docs/classraylib_1_1_music-members.html index d75cb23..027662b 100644 --- a/docs/classraylib_1_1_music-members.html +++ b/docs/classraylib_1_1_music-members.html @@ -103,7 +103,7 @@ $(function() { diff --git a/docs/classraylib_1_1_music.html b/docs/classraylib_1_1_music.html index a3da83f..8ba92d3 100644 --- a/docs/classraylib_1_1_music.html +++ b/docs/classraylib_1_1_music.html @@ -511,7 +511,7 @@ void  diff --git a/docs/classraylib_1_1_physics-members.html b/docs/classraylib_1_1_physics-members.html index 13a753c..9332a47 100644 --- a/docs/classraylib_1_1_physics-members.html +++ b/docs/classraylib_1_1_physics-members.html @@ -100,7 +100,7 @@ $(function() { diff --git a/docs/classraylib_1_1_physics.html b/docs/classraylib_1_1_physics.html index 9fbb13f..53253e5 100644 --- a/docs/classraylib_1_1_physics.html +++ b/docs/classraylib_1_1_physics.html @@ -151,7 +151,7 @@ int GetShapeVerticesCount< diff --git a/docs/classraylib_1_1_ray-members.html b/docs/classraylib_1_1_ray-members.html index e464bff..a1643ab 100644 --- a/docs/classraylib_1_1_ray-members.html +++ b/docs/classraylib_1_1_ray-members.html @@ -92,7 +92,7 @@ $(function() { diff --git a/docs/classraylib_1_1_ray.html b/docs/classraylib_1_1_ray.html index df416e0..2607e23 100644 --- a/docs/classraylib_1_1_ray.html +++ b/docs/classraylib_1_1_ray.html @@ -273,7 +273,7 @@ bool  diff --git a/docs/classraylib_1_1_ray_hit_info-members.html b/docs/classraylib_1_1_ray_hit_info-members.html index ea659c2..dee4c6e 100644 --- a/docs/classraylib_1_1_ray_hit_info-members.html +++ b/docs/classraylib_1_1_ray_hit_info-members.html @@ -92,7 +92,7 @@ $(function() { diff --git a/docs/classraylib_1_1_ray_hit_info.html b/docs/classraylib_1_1_ray_hit_info.html index bbe9bc2..c74682c 100644 --- a/docs/classraylib_1_1_ray_hit_info.html +++ b/docs/classraylib_1_1_ray_hit_info.html @@ -402,7 +402,7 @@ Public Member Functions diff --git a/docs/classraylib_1_1_rectangle-members.html b/docs/classraylib_1_1_rectangle-members.html index 733cd11..4b67c2d 100644 --- a/docs/classraylib_1_1_rectangle-members.html +++ b/docs/classraylib_1_1_rectangle-members.html @@ -115,7 +115,7 @@ $(function() { diff --git a/docs/classraylib_1_1_rectangle.html b/docs/classraylib_1_1_rectangle.html index 500c5c6..b532d51 100644 --- a/docs/classraylib_1_1_rectangle.html +++ b/docs/classraylib_1_1_rectangle.html @@ -469,7 +469,7 @@ inline ::Vector4  diff --git a/docs/classraylib_1_1_render_texture-members.html b/docs/classraylib_1_1_render_texture-members.html index 49d3245..81fbc8c 100644 --- a/docs/classraylib_1_1_render_texture-members.html +++ b/docs/classraylib_1_1_render_texture-members.html @@ -91,7 +91,7 @@ $(function() { diff --git a/docs/classraylib_1_1_render_texture.html b/docs/classraylib_1_1_render_texture.html index 1624960..531eef3 100644 --- a/docs/classraylib_1_1_render_texture.html +++ b/docs/classraylib_1_1_render_texture.html @@ -328,7 +328,7 @@ void Unload () diff --git a/docs/classraylib_1_1_shader-members.html b/docs/classraylib_1_1_shader-members.html index 12f9dba..c344699 100644 --- a/docs/classraylib_1_1_shader-members.html +++ b/docs/classraylib_1_1_shader-members.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/classraylib_1_1_shader.html b/docs/classraylib_1_1_shader.html index 2b3e7c5..346b110 100644 --- a/docs/classraylib_1_1_shader.html +++ b/docs/classraylib_1_1_shader.html @@ -529,7 +529,7 @@ Static Public Member Functions diff --git a/docs/classraylib_1_1_sound-members.html b/docs/classraylib_1_1_sound-members.html index fd97f54..ead6472 100644 --- a/docs/classraylib_1_1_sound-members.html +++ b/docs/classraylib_1_1_sound-members.html @@ -93,11 +93,12 @@ $(function() { StopMulti()raylib::Soundinline Unload()raylib::Soundinline Update(const void *data, int sampleCount)raylib::Soundinline - ~Sound() (defined in raylib::Sound)raylib::Soundinline + Update(const void *data)raylib::Soundinline + ~Sound() (defined in raylib::Sound)raylib::Soundinline diff --git a/docs/classraylib_1_1_sound.html b/docs/classraylib_1_1_sound.html index f021905..99ed250 100644 --- a/docs/classraylib_1_1_sound.html +++ b/docs/classraylib_1_1_sound.html @@ -144,6 +144,10 @@ bool Unload ()  Unload sound.
  + +Sound & Update (const void *data) + Update sound buffer with new data, assuming it's the same sample count.
+  Sound & Update (const void *data, int sampleCount)  Update sound buffer with new data.
@@ -292,7 +296,7 @@ void 
raylib::Sound
Wave/Sound management functions.
Definition: Sound.hpp:18
diff --git a/docs/classraylib_1_1_texture-members.html b/docs/classraylib_1_1_texture-members.html index 7d8a1d4..3478345 100644 --- a/docs/classraylib_1_1_texture-members.html +++ b/docs/classraylib_1_1_texture-members.html @@ -82,7 +82,7 @@ $(function() { Draw(::Vector2 tiling, ::Vector2 offset, ::Rectangle quad, ::Color tint={255, 255, 255, 255}) (defined in raylib::Texture)raylib::Textureinline Draw(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, ::Color tint={255, 255, 255, 255}) (defined in raylib::Texture)raylib::Textureinline Draw(::NPatchInfo nPatchInfo, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, ::Color tint={255, 255, 255, 255}) (defined in raylib::Texture)raylib::Textureinline - Draw(::Vector3 position, float width, float height, float length, ::Color color={255, 255, 255, 255}) (defined in raylib::Texture)raylib::Textureinline + Draw(::Vector3 position, float width, float height, float length, ::Color tint={255, 255, 255, 255}) (defined in raylib::Texture)raylib::Textureinline DrawPoly(Vector2 center, Vector2 *points, Vector2 *texcoords, int pointsCount, Color tint={255, 255, 255, 255}) (defined in raylib::Texture)raylib::Textureinline DrawTiled(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin={0, 0}, float rotation=0, float scale=1, Color tint={255, 255, 255, 255}) (defined in raylib::Texture)raylib::Textureinline GenMipmaps()raylib::Textureinline @@ -91,19 +91,19 @@ $(function() { GetHeight() constraylib::Textureinline GetId() constraylib::Textureinline GetMipmaps() constraylib::Textureinline - GetPixelDataSize(int width, int height, int format)raylib::Textureinlinestatic - GetSize()raylib::Textureinline - GetWidth() constraylib::Textureinline - Load(const std::string &fileName)raylib::Textureinline - LoadCubemap(const ::Image &image, int layoutType)raylib::Textureinline - LoadFromImage(const ::Image &image)raylib::Textureinline - operator raylib::Image()raylib::Textureinline - operator=(const ::Texture &texture) (defined in raylib::Texture)raylib::Textureinline - SetFilter(int filterMode)raylib::Textureinline - SetFormat(int value)raylib::Textureinline - SetHeight(int value)raylib::Textureinline - SetId(unsigned int value)raylib::Textureinline - SetMaterial(::Material *material, int mapType)raylib::Textureinline + GetSize()raylib::Textureinline + GetWidth() constraylib::Textureinline + Load(const std::string &fileName)raylib::Textureinline + LoadCubemap(const ::Image &image, int layoutType)raylib::Textureinline + LoadFromImage(const ::Image &image)raylib::Textureinline + operator raylib::Image()raylib::Textureinline + operator=(const ::Texture &texture) (defined in raylib::Texture)raylib::Textureinline + SetFilter(int filterMode)raylib::Textureinline + SetFormat(int value)raylib::Textureinline + SetHeight(int value)raylib::Textureinline + SetId(unsigned int value)raylib::Textureinline + SetMaterial(::Material *material, int mapType=MATERIAL_MAP_NORMAL)raylib::Textureinline + SetMaterial(const ::Material &material, int mapType=MATERIAL_MAP_NORMAL) (defined in raylib::Texture)raylib::Textureinline SetMipmaps(int value)raylib::Textureinline SetWidth(int value)raylib::Textureinline SetWrap(int wrapMode)raylib::Textureinline @@ -118,7 +118,7 @@ $(function() { diff --git a/docs/classraylib_1_1_texture.html b/docs/classraylib_1_1_texture.html index c901bf9..dd11fbe 100644 --- a/docs/classraylib_1_1_texture.html +++ b/docs/classraylib_1_1_texture.html @@ -69,7 +69,6 @@ $(function() {
raylib::Texture Class Reference
@@ -116,9 +115,9 @@ Public Member Functions Texture & Draw (::Vector2 tiling, ::Vector2 offset, ::Rectangle quad, ::Color tint={255, 255, 255, 255})   - -Texture & Draw (::Vector3 position, float width, float height, float length, ::Color color={255, 255, 255, 255}) -  + +Texture & Draw (::Vector3 position, float width, float height, float length, ::Color tint={255, 255, 255, 255}) +  Texture & Draw (int posX, int posY, ::Color tint={255, 255, 255, 255})  Draw a Texture2D.
@@ -188,10 +187,13 @@ void void SetId (unsigned int value)  Sets the id value for the object. More...
  - -Texture & SetMaterial (::Material *material, int mapType) - Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
-  + +Texture & SetMaterial (::Material *material, int mapType=MATERIAL_MAP_NORMAL) + Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
+  + +Texture & SetMaterial (const ::Material &material, int mapType=MATERIAL_MAP_NORMAL) +  void SetMipmaps (int value)  Sets the mipmaps value for the object. More...
  @@ -214,13 +216,6 @@ void Texture & UpdateRec (::Rectangle rec, const void *pixels)  Update GPU texture rectangle with new data.
  - - - - -

-Static Public Member Functions

-static int GetPixelDataSize (int width, int height, int format)
 Get pixel data size in bytes for certain format.
 

Detailed Description

Texture type.

@@ -604,7 +599,7 @@ static int  diff --git a/docs/classraylib_1_1_vector2-members.html b/docs/classraylib_1_1_vector2-members.html index 082fab8..8f1835a 100644 --- a/docs/classraylib_1_1_vector2-members.html +++ b/docs/classraylib_1_1_vector2-members.html @@ -133,7 +133,7 @@ $(function() {
diff --git a/docs/classraylib_1_1_vector2.html b/docs/classraylib_1_1_vector2.html index 4c89bcb..df5068c 100644 --- a/docs/classraylib_1_1_vector2.html +++ b/docs/classraylib_1_1_vector2.html @@ -410,7 +410,7 @@ static Vector2 <
diff --git a/docs/classraylib_1_1_vector3-members.html b/docs/classraylib_1_1_vector3-members.html index 9895cb9..99aa860 100644 --- a/docs/classraylib_1_1_vector3-members.html +++ b/docs/classraylib_1_1_vector3-members.html @@ -142,7 +142,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vector3.html b/docs/classraylib_1_1_vector3.html index 40228b1..e687b21 100644 --- a/docs/classraylib_1_1_vector3.html +++ b/docs/classraylib_1_1_vector3.html @@ -484,7 +484,7 @@ static Vector3 < diff --git a/docs/classraylib_1_1_vector4-members.html b/docs/classraylib_1_1_vector4-members.html index 0f1dc9a..fdf8740 100644 --- a/docs/classraylib_1_1_vector4-members.html +++ b/docs/classraylib_1_1_vector4-members.html @@ -117,7 +117,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vector4.html b/docs/classraylib_1_1_vector4.html index 0847d6b..c68a9c8 100644 --- a/docs/classraylib_1_1_vector4.html +++ b/docs/classraylib_1_1_vector4.html @@ -474,7 +474,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 cc8bcd3..e4d2145 100644 --- a/docs/classraylib_1_1_vr_stereo_config-members.html +++ b/docs/classraylib_1_1_vr_stereo_config-members.html @@ -83,7 +83,7 @@ $(function() { diff --git a/docs/classraylib_1_1_vr_stereo_config.html b/docs/classraylib_1_1_vr_stereo_config.html index 1f95515..4dcc5ec 100644 --- a/docs/classraylib_1_1_vr_stereo_config.html +++ b/docs/classraylib_1_1_vr_stereo_config.html @@ -111,7 +111,7 @@ void  diff --git a/docs/classraylib_1_1_wave-members.html b/docs/classraylib_1_1_wave-members.html index 4d0a1a5..adff5d4 100644 --- a/docs/classraylib_1_1_wave-members.html +++ b/docs/classraylib_1_1_wave-members.html @@ -104,7 +104,7 @@ $(function() { diff --git a/docs/classraylib_1_1_wave.html b/docs/classraylib_1_1_wave.html index d1cfab2..770a975 100644 --- a/docs/classraylib_1_1_wave.html +++ b/docs/classraylib_1_1_wave.html @@ -561,7 +561,7 @@ void  diff --git a/docs/classraylib_1_1_window-members.html b/docs/classraylib_1_1_window-members.html index 7df6d7d..d3a52ff 100644 --- a/docs/classraylib_1_1_window-members.html +++ b/docs/classraylib_1_1_window-members.html @@ -119,7 +119,7 @@ $(function() { diff --git a/docs/classraylib_1_1_window.html b/docs/classraylib_1_1_window.html index 26cf974..f121d7c 100644 --- a/docs/classraylib_1_1_window.html +++ b/docs/classraylib_1_1_window.html @@ -259,7 +259,7 @@ static bool  diff --git a/docs/dir_d44c64559bbebec7f509842c48db8b23.html b/docs/dir_d44c64559bbebec7f509842c48db8b23.html index dd0b7df..53b4632 100644 --- a/docs/dir_d44c64559bbebec7f509842c48db8b23.html +++ b/docs/dir_d44c64559bbebec7f509842c48db8b23.html @@ -74,7 +74,7 @@ $(function() { diff --git a/docs/functions.html b/docs/functions.html index 8be514b..f26cf14 100644 --- a/docs/functions.html +++ b/docs/functions.html @@ -94,7 +94,7 @@ $(function() { diff --git a/docs/functions_b.html b/docs/functions_b.html index 18ca437..ddbd40c 100644 --- a/docs/functions_b.html +++ b/docs/functions_b.html @@ -86,7 +86,7 @@ $(function() { diff --git a/docs/functions_c.html b/docs/functions_c.html index 08389b0..aa9d6ef 100644 --- a/docs/functions_c.html +++ b/docs/functions_c.html @@ -144,7 +144,7 @@ $(function() { diff --git a/docs/functions_d.html b/docs/functions_d.html index 2cf20c7..e238b78 100644 --- a/docs/functions_d.html +++ b/docs/functions_d.html @@ -108,7 +108,7 @@ $(function() { diff --git a/docs/functions_e.html b/docs/functions_e.html index d0cd342..d2b3beb 100644 --- a/docs/functions_e.html +++ b/docs/functions_e.html @@ -88,7 +88,7 @@ $(function() { diff --git a/docs/functions_f.html b/docs/functions_f.html index 8370d2a..6063c0e 100644 --- a/docs/functions_f.html +++ b/docs/functions_f.html @@ -89,7 +89,7 @@ $(function() { diff --git a/docs/functions_func.html b/docs/functions_func.html index 68918c6..bd31704 100644 --- a/docs/functions_func.html +++ b/docs/functions_func.html @@ -94,7 +94,7 @@ $(function() { diff --git a/docs/functions_func_b.html b/docs/functions_func_b.html index 85550a7..4f41903 100644 --- a/docs/functions_func_b.html +++ b/docs/functions_func_b.html @@ -86,7 +86,7 @@ $(function() { diff --git a/docs/functions_func_c.html b/docs/functions_func_c.html index b4443d1..28fa7cc 100644 --- a/docs/functions_func_c.html +++ b/docs/functions_func_c.html @@ -144,7 +144,7 @@ $(function() { diff --git a/docs/functions_func_d.html b/docs/functions_func_d.html index e6bf318..8d84a0e 100644 --- a/docs/functions_func_d.html +++ b/docs/functions_func_d.html @@ -108,7 +108,7 @@ $(function() { diff --git a/docs/functions_func_e.html b/docs/functions_func_e.html index a340a02..275a462 100644 --- a/docs/functions_func_e.html +++ b/docs/functions_func_e.html @@ -88,7 +88,7 @@ $(function() { diff --git a/docs/functions_func_f.html b/docs/functions_func_f.html index 3986196..7c48bd6 100644 --- a/docs/functions_func_f.html +++ b/docs/functions_func_f.html @@ -89,7 +89,7 @@ $(function() { diff --git a/docs/functions_func_g.html b/docs/functions_func_g.html index b88781c..7931da3 100644 --- a/docs/functions_func_g.html +++ b/docs/functions_func_g.html @@ -319,7 +319,7 @@ $(function() { : raylib::Camera2D
  • GetPixelDataSize() -: raylib::Texture +: raylib::Image
  • GetPosition() : raylib::Camera3D @@ -465,7 +465,7 @@ $(function() { diff --git a/docs/functions_func_h.html b/docs/functions_func_h.html index ce1a983..6f7a468 100644 --- a/docs/functions_func_h.html +++ b/docs/functions_func_h.html @@ -76,7 +76,7 @@ $(function() { diff --git a/docs/functions_func_i.html b/docs/functions_func_i.html index 7242c08..be6d4e1 100644 --- a/docs/functions_func_i.html +++ b/docs/functions_func_i.html @@ -140,7 +140,7 @@ $(function() { diff --git a/docs/functions_func_k.html b/docs/functions_func_k.html index 3706602..1431181 100644 --- a/docs/functions_func_k.html +++ b/docs/functions_func_k.html @@ -73,7 +73,7 @@ $(function() { diff --git a/docs/functions_func_l.html b/docs/functions_func_l.html index e1b46a3..505a401 100644 --- a/docs/functions_func_l.html +++ b/docs/functions_func_l.html @@ -119,7 +119,7 @@ $(function() { diff --git a/docs/functions_func_m.html b/docs/functions_func_m.html index c331ce2..440337a 100644 --- a/docs/functions_func_m.html +++ b/docs/functions_func_m.html @@ -91,7 +91,7 @@ $(function() { diff --git a/docs/functions_func_n.html b/docs/functions_func_n.html index 750de6d..98996f7 100644 --- a/docs/functions_func_n.html +++ b/docs/functions_func_n.html @@ -74,7 +74,7 @@ $(function() { diff --git a/docs/functions_func_o.html b/docs/functions_func_o.html index 5295a7e..17c0815 100644 --- a/docs/functions_func_o.html +++ b/docs/functions_func_o.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/functions_func_p.html b/docs/functions_func_p.html index 62b2458..1e9ad84 100644 --- a/docs/functions_func_p.html +++ b/docs/functions_func_p.html @@ -92,7 +92,7 @@ $(function() { diff --git a/docs/functions_func_r.html b/docs/functions_func_r.html index 6cf6335..2b43a06 100644 --- a/docs/functions_func_r.html +++ b/docs/functions_func_r.html @@ -102,7 +102,7 @@ $(function() { diff --git a/docs/functions_func_s.html b/docs/functions_func_s.html index a83f0fd..6f1a43a 100644 --- a/docs/functions_func_s.html +++ b/docs/functions_func_s.html @@ -241,7 +241,7 @@ $(function() { : raylib::Material
  • SetMaterial() -: raylib::Texture +: raylib::Texture
  • SetMaterialCount() : raylib::Model @@ -449,7 +449,7 @@ $(function() { diff --git a/docs/functions_func_t.html b/docs/functions_func_t.html index d08c922..6f4cc1d 100644 --- a/docs/functions_func_t.html +++ b/docs/functions_func_t.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/functions_func_u.html b/docs/functions_func_u.html index c2ea493..48d90ee 100644 --- a/docs/functions_func_u.html +++ b/docs/functions_func_u.html @@ -95,7 +95,7 @@ $(function() { , raylib::Camera3D , raylib::ModelAnimation , raylib::Music -, raylib::Sound +, raylib::Sound , raylib::Texture
  • UpdateAnimation() @@ -114,7 +114,7 @@ $(function() { diff --git a/docs/functions_func_w.html b/docs/functions_func_w.html index 48d12cf..e2caa47 100644 --- a/docs/functions_func_w.html +++ b/docs/functions_func_w.html @@ -79,7 +79,7 @@ $(function() { diff --git a/docs/functions_func_z.html b/docs/functions_func_z.html index 79da102..0fd4650 100644 --- a/docs/functions_func_z.html +++ b/docs/functions_func_z.html @@ -73,7 +73,7 @@ $(function() { diff --git a/docs/functions_func_~.html b/docs/functions_func_~.html index 8c3624a..ffe1f63 100644 --- a/docs/functions_func_~.html +++ b/docs/functions_func_~.html @@ -85,7 +85,7 @@ $(function() { diff --git a/docs/functions_g.html b/docs/functions_g.html index 5492161..5fa1ae1 100644 --- a/docs/functions_g.html +++ b/docs/functions_g.html @@ -319,7 +319,7 @@ $(function() { : raylib::Camera2D
  • GetPixelDataSize() -: raylib::Texture +: raylib::Image
  • GetPosition() : raylib::Camera3D @@ -465,7 +465,7 @@ $(function() { diff --git a/docs/functions_h.html b/docs/functions_h.html index 662239d..4f72c92 100644 --- a/docs/functions_h.html +++ b/docs/functions_h.html @@ -76,7 +76,7 @@ $(function() { diff --git a/docs/functions_i.html b/docs/functions_i.html index f9882bf..d0b6a41 100644 --- a/docs/functions_i.html +++ b/docs/functions_i.html @@ -140,7 +140,7 @@ $(function() { diff --git a/docs/functions_k.html b/docs/functions_k.html index 9590106..abc5a48 100644 --- a/docs/functions_k.html +++ b/docs/functions_k.html @@ -73,7 +73,7 @@ $(function() { diff --git a/docs/functions_l.html b/docs/functions_l.html index d35aba0..66bfb12 100644 --- a/docs/functions_l.html +++ b/docs/functions_l.html @@ -119,7 +119,7 @@ $(function() { diff --git a/docs/functions_m.html b/docs/functions_m.html index 113241f..d08c3db 100644 --- a/docs/functions_m.html +++ b/docs/functions_m.html @@ -91,7 +91,7 @@ $(function() { diff --git a/docs/functions_n.html b/docs/functions_n.html index 1e8a0e1..333b774 100644 --- a/docs/functions_n.html +++ b/docs/functions_n.html @@ -74,7 +74,7 @@ $(function() { diff --git a/docs/functions_o.html b/docs/functions_o.html index 70b31ff..37c3a25 100644 --- a/docs/functions_o.html +++ b/docs/functions_o.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/functions_p.html b/docs/functions_p.html index 6c38036..e711470 100644 --- a/docs/functions_p.html +++ b/docs/functions_p.html @@ -92,7 +92,7 @@ $(function() { diff --git a/docs/functions_r.html b/docs/functions_r.html index 4244767..6ddc14c 100644 --- a/docs/functions_r.html +++ b/docs/functions_r.html @@ -102,7 +102,7 @@ $(function() { diff --git a/docs/functions_s.html b/docs/functions_s.html index 794b4d0..27b6e8e 100644 --- a/docs/functions_s.html +++ b/docs/functions_s.html @@ -241,7 +241,7 @@ $(function() { : raylib::Material
  • SetMaterial() -: raylib::Texture +: raylib::Texture
  • SetMaterialCount() : raylib::Model @@ -449,7 +449,7 @@ $(function() { diff --git a/docs/functions_t.html b/docs/functions_t.html index c4c870d..d2676d9 100644 --- a/docs/functions_t.html +++ b/docs/functions_t.html @@ -97,7 +97,7 @@ $(function() { diff --git a/docs/functions_u.html b/docs/functions_u.html index 34928dd..c239ef4 100644 --- a/docs/functions_u.html +++ b/docs/functions_u.html @@ -95,7 +95,7 @@ $(function() { , raylib::Camera3D , raylib::ModelAnimation , raylib::Music -, raylib::Sound +, raylib::Sound , raylib::Texture
  • UpdateAnimation() @@ -114,7 +114,7 @@ $(function() { diff --git a/docs/functions_w.html b/docs/functions_w.html index c08676b..18e8bc2 100644 --- a/docs/functions_w.html +++ b/docs/functions_w.html @@ -79,7 +79,7 @@ $(function() { diff --git a/docs/functions_z.html b/docs/functions_z.html index 3d90b67..d858414 100644 --- a/docs/functions_z.html +++ b/docs/functions_z.html @@ -73,7 +73,7 @@ $(function() { diff --git a/docs/functions_~.html b/docs/functions_~.html index a6c2084..937d0cc 100644 --- a/docs/functions_~.html +++ b/docs/functions_~.html @@ -85,7 +85,7 @@ $(function() { diff --git a/docs/index.html b/docs/index.html index 256370b..c18444e 100644 --- a/docs/index.html +++ b/docs/index.html @@ -140,7 +140,7 @@ $(function() {
    Window and Graphics Device Functions.
    Definition: Window.hpp:12
    diff --git a/docs/namespacemembers.html b/docs/namespacemembers.html index 0fa47ed..6248a94 100644 --- a/docs/namespacemembers.html +++ b/docs/namespacemembers.html @@ -216,7 +216,7 @@ $(function() { diff --git a/docs/namespacemembers_func.html b/docs/namespacemembers_func.html index ea6b0c0..8f76d5e 100644 --- a/docs/namespacemembers_func.html +++ b/docs/namespacemembers_func.html @@ -216,7 +216,7 @@ $(function() { diff --git a/docs/namespaceraylib.html b/docs/namespaceraylib.html index 0269935..146a9ea 100644 --- a/docs/namespaceraylib.html +++ b/docs/namespaceraylib.html @@ -330,7 +330,7 @@ static void  diff --git a/docs/namespaces.html b/docs/namespaces.html index fafe444..51d0328 100644 --- a/docs/namespaces.html +++ b/docs/namespaces.html @@ -75,7 +75,7 @@ $(function() { diff --git a/docs/physac_8hpp_source.html b/docs/physac_8hpp_source.html index 5a58d16..277614d 100644 --- a/docs/physac_8hpp_source.html +++ b/docs/physac_8hpp_source.html @@ -87,7 +87,7 @@ $(function() { diff --git a/docs/raylib-cpp-utils_8hpp_source.html b/docs/raylib-cpp-utils_8hpp_source.html index 5fd30d0..540f95a 100644 --- a/docs/raylib-cpp-utils_8hpp_source.html +++ b/docs/raylib-cpp-utils_8hpp_source.html @@ -88,7 +88,7 @@ $(function() { diff --git a/docs/raylib-cpp_8hpp_source.html b/docs/raylib-cpp_8hpp_source.html index 0fa12d2..6b760ac 100644 --- a/docs/raylib-cpp_8hpp_source.html +++ b/docs/raylib-cpp_8hpp_source.html @@ -116,7 +116,7 @@ $(function() {
    All raylib-cpp classes and functions appear in the raylib namespace.
    Definition: AudioDevice.hpp:7
    diff --git a/docs/raylib_8hpp_source.html b/docs/raylib_8hpp_source.html index c38c510..0450a00 100644 --- a/docs/raylib_8hpp_source.html +++ b/docs/raylib_8hpp_source.html @@ -87,7 +87,7 @@ $(function() { diff --git a/docs/raymath_8hpp_source.html b/docs/raymath_8hpp_source.html index 634897b..406537e 100644 --- a/docs/raymath_8hpp_source.html +++ b/docs/raymath_8hpp_source.html @@ -89,7 +89,7 @@ $(function() { diff --git a/docs/search/all_10.js b/docs/search/all_10.js index 6f1ad25..cb073b1 100644 --- a/docs/search/all_10.js +++ b/docs/search/all_10.js @@ -57,7 +57,7 @@ var searchData= ['setm8_340',['SetM8',['../classraylib_1_1_matrix.html#a5417c6adbc0106783dd8f05a279d9c02',1,'raylib::Matrix']]], ['setm9_341',['SetM9',['../classraylib_1_1_matrix.html#a2476f470c2462a859ea139d7013f272c',1,'raylib::Matrix']]], ['setmaps_342',['SetMaps',['../classraylib_1_1_material.html#a629e453e6e682bde8e0a7db31dda7523',1,'raylib::Material']]], - ['setmaterial_343',['SetMaterial',['../classraylib_1_1_texture.html#a30155e10c340a6e095d430cdb8b113b1',1,'raylib::Texture']]], + ['setmaterial_343',['SetMaterial',['../classraylib_1_1_texture.html#a8667f5e1c478cfe06e48a1a98f3c1368',1,'raylib::Texture']]], ['setmaterialcount_344',['SetMaterialCount',['../classraylib_1_1_model.html#a6ba6210b8a4e52cee98529f2d7b82b67',1,'raylib::Model']]], ['setmaterials_345',['SetMaterials',['../classraylib_1_1_model.html#a9f9f5f426134239d73d681da5283dc9f',1,'raylib::Model']]], ['setmax_346',['SetMax',['../classraylib_1_1_bounding_box.html#a6c58c71a3be8e2b821c4fb0be3b176f1',1,'raylib::BoundingBox']]], diff --git a/docs/search/all_12.js b/docs/search/all_12.js index 3fd28e2..020b69f 100644 --- a/docs/search/all_12.js +++ b/docs/search/all_12.js @@ -5,7 +5,7 @@ var searchData= ['unloadkeepmeshes_419',['UnloadKeepMeshes',['../classraylib_1_1_model.html#a1f8233c28728eff2c4684cb8b4258cda',1,'raylib::Model']]], ['unloadpalette_420',['UnloadPalette',['../classraylib_1_1_image.html#a830495e93c51740572e81ea2d3c90a31',1,'raylib::Image']]], ['unloadsamples_421',['UnloadSamples',['../classraylib_1_1_wave.html#adf7aaa265fec9183ef60c276a740d138',1,'raylib::Wave']]], - ['update_422',['Update',['../classraylib_1_1_audio_stream.html#ac7aa320c506865cc88d60264549d23b0',1,'raylib::AudioStream::Update()'],['../classraylib_1_1_camera3_d.html#a6a59671e1b7ed19c5b6566e700b625a7',1,'raylib::Camera3D::Update()'],['../classraylib_1_1_model_animation.html#aa5cf71119ac343985b5575be55475c05',1,'raylib::ModelAnimation::Update()'],['../classraylib_1_1_music.html#a031bc82c19b51b29f5c507cacd9c2664',1,'raylib::Music::Update()'],['../classraylib_1_1_sound.html#aa10536a28f5c23d056c56b69c86951ef',1,'raylib::Sound::Update()'],['../classraylib_1_1_texture.html#ad2be6ad3fbbff3141dc274b1b397902c',1,'raylib::Texture::Update()']]], + ['update_422',['Update',['../classraylib_1_1_audio_stream.html#ac7aa320c506865cc88d60264549d23b0',1,'raylib::AudioStream::Update()'],['../classraylib_1_1_camera3_d.html#a6a59671e1b7ed19c5b6566e700b625a7',1,'raylib::Camera3D::Update()'],['../classraylib_1_1_model_animation.html#aa5cf71119ac343985b5575be55475c05',1,'raylib::ModelAnimation::Update()'],['../classraylib_1_1_music.html#a031bc82c19b51b29f5c507cacd9c2664',1,'raylib::Music::Update()'],['../classraylib_1_1_sound.html#aa10536a28f5c23d056c56b69c86951ef',1,'raylib::Sound::Update(const void *data, int sampleCount)'],['../classraylib_1_1_sound.html#aa17ec450860a4b02d1fc717dcec278e5',1,'raylib::Sound::Update(const void *data)'],['../classraylib_1_1_texture.html#ad2be6ad3fbbff3141dc274b1b397902c',1,'raylib::Texture::Update()']]], ['updateanimation_423',['UpdateAnimation',['../classraylib_1_1_model.html#a6b2400a98189c50a0c01d9868f56c3e4',1,'raylib::Model']]], ['updatebuffer_424',['UpdateBuffer',['../classraylib_1_1_mesh.html#a2d592396bc6c930fe886a406336b8bdf',1,'raylib::Mesh']]], ['updatecamera_425',['UpdateCamera',['../namespaceraylib.html#abd45302dac72cb253026bce044dee236',1,'raylib']]], diff --git a/docs/search/all_6.js b/docs/search/all_6.js index d6574b0..6557390 100644 --- a/docs/search/all_6.js +++ b/docs/search/all_6.js @@ -89,7 +89,7 @@ var searchData= ['getnormals_148',['GetNormals',['../classraylib_1_1_mesh.html#a0fcc7bca9b9419a0d8e3d59666082edc',1,'raylib::Mesh']]], ['getnumber_149',['GetNumber',['../classraylib_1_1_gamepad.html#ac04f6820f2a0d7ffa3876ac1bac9926b',1,'raylib::Gamepad']]], ['getoffset_150',['GetOffset',['../classraylib_1_1_camera2_d.html#a6f2a2adaac6ce26b6ca132f88a119e01',1,'raylib::Camera2D']]], - ['getpixeldatasize_151',['GetPixelDataSize',['../classraylib_1_1_texture.html#a0fff973d5945d3029f2020979753f75b',1,'raylib::Texture']]], + ['getpixeldatasize_151',['GetPixelDataSize',['../classraylib_1_1_image.html#aa432e9f4e1b7a5e31a70447e3efd979d',1,'raylib::Image::GetPixelDataSize(int width, int height, int format=PIXELFORMAT_UNCOMPRESSED_R32G32B32A32)'],['../classraylib_1_1_image.html#afcfe495d4d8c3126584b1f922f8d350b',1,'raylib::Image::GetPixelDataSize()']]], ['getposition_152',['GetPosition',['../classraylib_1_1_camera3_d.html#a8de66de053eac614313c0912aff2b755',1,'raylib::Camera3D::GetPosition()'],['../classraylib_1_1_ray.html#a13d000fd9369b90b44dffcbc63eb5475',1,'raylib::Ray::GetPosition()'],['../classraylib_1_1_ray_hit_info.html#a0aa30a98327549861234c144734b7605',1,'raylib::RayHitInfo::GetPosition()'],['../classraylib_1_1_window.html#a3b1ba3352da1660ebc3528abba28347c',1,'raylib::Window::GetPosition()']]], ['getprevdirectorypath_153',['GetPrevDirectoryPath',['../namespaceraylib.html#ade271537f199a6fb169389b9bb05a529',1,'raylib']]], ['getprojection_154',['GetProjection',['../classraylib_1_1_camera3_d.html#a2886f1e2b41524fcc7e43862460201ce',1,'raylib::Camera3D']]], diff --git a/docs/search/functions_10.js b/docs/search/functions_10.js index 11e5994..e2c7760 100644 --- a/docs/search/functions_10.js +++ b/docs/search/functions_10.js @@ -57,7 +57,7 @@ var searchData= ['setm8_796',['SetM8',['../classraylib_1_1_matrix.html#a5417c6adbc0106783dd8f05a279d9c02',1,'raylib::Matrix']]], ['setm9_797',['SetM9',['../classraylib_1_1_matrix.html#a2476f470c2462a859ea139d7013f272c',1,'raylib::Matrix']]], ['setmaps_798',['SetMaps',['../classraylib_1_1_material.html#a629e453e6e682bde8e0a7db31dda7523',1,'raylib::Material']]], - ['setmaterial_799',['SetMaterial',['../classraylib_1_1_texture.html#a30155e10c340a6e095d430cdb8b113b1',1,'raylib::Texture']]], + ['setmaterial_799',['SetMaterial',['../classraylib_1_1_texture.html#a8667f5e1c478cfe06e48a1a98f3c1368',1,'raylib::Texture']]], ['setmaterialcount_800',['SetMaterialCount',['../classraylib_1_1_model.html#a6ba6210b8a4e52cee98529f2d7b82b67',1,'raylib::Model']]], ['setmaterials_801',['SetMaterials',['../classraylib_1_1_model.html#a9f9f5f426134239d73d681da5283dc9f',1,'raylib::Model']]], ['setmax_802',['SetMax',['../classraylib_1_1_bounding_box.html#a6c58c71a3be8e2b821c4fb0be3b176f1',1,'raylib::BoundingBox']]], diff --git a/docs/search/functions_12.js b/docs/search/functions_12.js index 5b52e2c..a5209d5 100644 --- a/docs/search/functions_12.js +++ b/docs/search/functions_12.js @@ -5,7 +5,7 @@ var searchData= ['unloadkeepmeshes_873',['UnloadKeepMeshes',['../classraylib_1_1_model.html#a1f8233c28728eff2c4684cb8b4258cda',1,'raylib::Model']]], ['unloadpalette_874',['UnloadPalette',['../classraylib_1_1_image.html#a830495e93c51740572e81ea2d3c90a31',1,'raylib::Image']]], ['unloadsamples_875',['UnloadSamples',['../classraylib_1_1_wave.html#adf7aaa265fec9183ef60c276a740d138',1,'raylib::Wave']]], - ['update_876',['Update',['../classraylib_1_1_audio_stream.html#ac7aa320c506865cc88d60264549d23b0',1,'raylib::AudioStream::Update()'],['../classraylib_1_1_camera3_d.html#a6a59671e1b7ed19c5b6566e700b625a7',1,'raylib::Camera3D::Update()'],['../classraylib_1_1_model_animation.html#aa5cf71119ac343985b5575be55475c05',1,'raylib::ModelAnimation::Update()'],['../classraylib_1_1_music.html#a031bc82c19b51b29f5c507cacd9c2664',1,'raylib::Music::Update()'],['../classraylib_1_1_sound.html#aa10536a28f5c23d056c56b69c86951ef',1,'raylib::Sound::Update()'],['../classraylib_1_1_texture.html#ad2be6ad3fbbff3141dc274b1b397902c',1,'raylib::Texture::Update()']]], + ['update_876',['Update',['../classraylib_1_1_audio_stream.html#ac7aa320c506865cc88d60264549d23b0',1,'raylib::AudioStream::Update()'],['../classraylib_1_1_camera3_d.html#a6a59671e1b7ed19c5b6566e700b625a7',1,'raylib::Camera3D::Update()'],['../classraylib_1_1_model_animation.html#aa5cf71119ac343985b5575be55475c05',1,'raylib::ModelAnimation::Update()'],['../classraylib_1_1_music.html#a031bc82c19b51b29f5c507cacd9c2664',1,'raylib::Music::Update()'],['../classraylib_1_1_sound.html#aa10536a28f5c23d056c56b69c86951ef',1,'raylib::Sound::Update(const void *data, int sampleCount)'],['../classraylib_1_1_sound.html#aa17ec450860a4b02d1fc717dcec278e5',1,'raylib::Sound::Update(const void *data)'],['../classraylib_1_1_texture.html#ad2be6ad3fbbff3141dc274b1b397902c',1,'raylib::Texture::Update()']]], ['updateanimation_877',['UpdateAnimation',['../classraylib_1_1_model.html#a6b2400a98189c50a0c01d9868f56c3e4',1,'raylib::Model']]], ['updatebuffer_878',['UpdateBuffer',['../classraylib_1_1_mesh.html#a2d592396bc6c930fe886a406336b8bdf',1,'raylib::Mesh']]], ['updatecamera_879',['UpdateCamera',['../namespaceraylib.html#abd45302dac72cb253026bce044dee236',1,'raylib']]], diff --git a/docs/search/functions_6.js b/docs/search/functions_6.js index d8c0a3f..1743f03 100644 --- a/docs/search/functions_6.js +++ b/docs/search/functions_6.js @@ -88,7 +88,7 @@ var searchData= ['getnormals_616',['GetNormals',['../classraylib_1_1_mesh.html#a0fcc7bca9b9419a0d8e3d59666082edc',1,'raylib::Mesh']]], ['getnumber_617',['GetNumber',['../classraylib_1_1_gamepad.html#ac04f6820f2a0d7ffa3876ac1bac9926b',1,'raylib::Gamepad']]], ['getoffset_618',['GetOffset',['../classraylib_1_1_camera2_d.html#a6f2a2adaac6ce26b6ca132f88a119e01',1,'raylib::Camera2D']]], - ['getpixeldatasize_619',['GetPixelDataSize',['../classraylib_1_1_texture.html#a0fff973d5945d3029f2020979753f75b',1,'raylib::Texture']]], + ['getpixeldatasize_619',['GetPixelDataSize',['../classraylib_1_1_image.html#aa432e9f4e1b7a5e31a70447e3efd979d',1,'raylib::Image::GetPixelDataSize(int width, int height, int format=PIXELFORMAT_UNCOMPRESSED_R32G32B32A32)'],['../classraylib_1_1_image.html#afcfe495d4d8c3126584b1f922f8d350b',1,'raylib::Image::GetPixelDataSize()']]], ['getposition_620',['GetPosition',['../classraylib_1_1_camera3_d.html#a8de66de053eac614313c0912aff2b755',1,'raylib::Camera3D::GetPosition()'],['../classraylib_1_1_ray.html#a13d000fd9369b90b44dffcbc63eb5475',1,'raylib::Ray::GetPosition()'],['../classraylib_1_1_ray_hit_info.html#a0aa30a98327549861234c144734b7605',1,'raylib::RayHitInfo::GetPosition()'],['../classraylib_1_1_window.html#a3b1ba3352da1660ebc3528abba28347c',1,'raylib::Window::GetPosition()']]], ['getprevdirectorypath_621',['GetPrevDirectoryPath',['../namespaceraylib.html#ade271537f199a6fb169389b9bb05a529',1,'raylib']]], ['getprojection_622',['GetProjection',['../classraylib_1_1_camera3_d.html#a2886f1e2b41524fcc7e43862460201ce',1,'raylib::Camera3D']]], diff --git a/include/BoundingBox.hpp b/include/BoundingBox.hpp index 7b8c4ce..bd9497b 100644 --- a/include/BoundingBox.hpp +++ b/include/BoundingBox.hpp @@ -21,6 +21,11 @@ class BoundingBox : public ::BoundingBox { set(::MeshBoundingBox(mesh)); } + BoundingBox(::Vector3 minMax) { + min = minMax; + max = minMax; + } + BoundingBox(::Vector3 Min, ::Vector3 Max) { min = Min; max = Max; diff --git a/include/Color.hpp b/include/Color.hpp index 2389a4f..9695ba6 100644 --- a/include/Color.hpp +++ b/include/Color.hpp @@ -17,12 +17,13 @@ class Color : public ::Color { set(color); } - Color(unsigned char red, unsigned char green, unsigned char blue, unsigned char alpha) : + Color( + unsigned char red, + unsigned char green, + unsigned char blue, + unsigned char alpha = 255) : ::Color{red, green, blue, alpha} {}; - Color(unsigned char red, unsigned char green, unsigned char blue) : - ::Color{red, green, blue, 255} {}; - /** * Black. */ diff --git a/include/Font.hpp b/include/Font.hpp index f0b0d6a..ca78251 100644 --- a/include/Font.hpp +++ b/include/Font.hpp @@ -32,7 +32,7 @@ class Font : public ::Font { set(::LoadFontFromImage(image, key, firstChar)); } - Font(const std::string& fileType, const unsigned char *fileData, int dataSize, int fontSize, + Font(const std::string& fileType, const unsigned char* fileData, int dataSize, int fontSize, int *fontChars, int charsCount) { set(::LoadFontFromMemory(fileType.c_str(), fileData, dataSize, fontSize, fontChars, charsCount)); diff --git a/include/Image.hpp b/include/Image.hpp index 785d5bb..10314a3 100644 --- a/include/Image.hpp +++ b/include/Image.hpp @@ -479,7 +479,7 @@ class Image : public ::Image { return *this; } - inline Image& DrawRectangleLines(::Rectangle rec, int thick, + inline Image& DrawRectangleLines(::Rectangle rec, int thick = 1, ::Color color = {255, 255, 255, 255}) { ::ImageDrawRectangleLines(this, rec, thick, color); return *this; @@ -556,6 +556,22 @@ class Image : public ::Image { return LoadTexture(); } + /** + * Get pixel data size in bytes for certain format + */ + static int GetPixelDataSize(int width, int height, int format = PIXELFORMAT_UNCOMPRESSED_R32G32B32A32) { + return ::GetPixelDataSize(width, height, format); + } + + /** + * Returns the pixel data size of the image. + * + * @return The pixel data size of the image. + */ + int GetPixelDataSize() { + return ::GetPixelDataSize(width, height, format); + } + private: inline void set(const ::Image& image) { data = image.data; diff --git a/include/Sound.hpp b/include/Sound.hpp index 5dc51df..29b9184 100644 --- a/include/Sound.hpp +++ b/include/Sound.hpp @@ -49,6 +49,14 @@ class Sound : public ::Sound { return *this; } + /** + * Update sound buffer with new data, assuming it's the same sample count. + */ + inline Sound& Update(const void *data) { + ::UpdateSound(*this, data, sampleCount); + return *this; + } + /** * Unload sound */ diff --git a/include/Texture.hpp b/include/Texture.hpp index 0afe69b..423037d 100644 --- a/include/Texture.hpp +++ b/include/Texture.hpp @@ -193,8 +193,8 @@ class Texture : public ::Texture { } inline Texture& Draw(::Vector3 position, float width, float height, float length, - ::Color color = {255, 255, 255, 255}) { - ::DrawCubeTexture(*this, position, width, height, length, color); + ::Color tint = {255, 255, 255, 255}) { + ::DrawCubeTexture(*this, position, width, height, length, tint); return *this; } @@ -214,16 +214,14 @@ class Texture : public ::Texture { /** * Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...) */ - inline Texture& SetMaterial(::Material *material, int mapType) { + inline Texture& SetMaterial(::Material *material, int mapType = MATERIAL_MAP_NORMAL) { ::SetMaterialTexture(material, mapType, *this); return *this; } - /** - * Get pixel data size in bytes for certain format - */ - static int GetPixelDataSize(int width, int height, int format) { - return ::GetPixelDataSize(width, height, format); + inline Texture& SetMaterial(const ::Material& material, int mapType = MATERIAL_MAP_NORMAL) { + ::SetMaterialTexture((::Material*)(&material), mapType, *this); + return *this; } private: diff --git a/projects/Doxygen/Doxyfile b/projects/Doxygen/Doxyfile index c798fe1..3e57146 100644 --- a/projects/Doxygen/Doxyfile +++ b/projects/Doxygen/Doxyfile @@ -1127,7 +1127,7 @@ HTML_COLORSTYLE_GAMMA = 80 # The default value is: YES. # This tag requires that the tag GENERATE_HTML is set to YES. -HTML_TIMESTAMP = YES +HTML_TIMESTAMP = NO # If the HTML_DYNAMIC_SECTIONS tag is set to YES then the generated HTML # documentation will contain sections that can be hidden and shown after the