From 0bd8cb55b50ab8d8df3d778bb547d9174f8932a3 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 15 Nov 2021 03:51:26 -0500 Subject: [PATCH] Build documentation --- docs/_audio_stream_8hpp_source.html | 209 +++-- docs/_bounding_box_8hpp_source.html | 63 +- docs/_camera2_d_8hpp_source.html | 99 +- docs/_camera3_d_8hpp_source.html | 232 +++-- docs/_color_8hpp_source.html | 246 ++--- docs/_font_8hpp_source.html | 188 ++-- docs/_functions_8hpp_source.html | 279 +++--- docs/_gamepad_8hpp_source.html | 71 +- docs/_image_8hpp_source.html | 878 +++++++++--------- docs/_material_8hpp_source.html | 110 ++- docs/_matrix_8hpp_source.html | 379 ++++---- docs/_mesh_8hpp_source.html | 376 ++++---- docs/_model_8hpp_source.html | 253 ++--- docs/_model_animation_8hpp_source.html | 118 ++- docs/_music_8hpp_source.html | 191 ++-- docs/_ray_8hpp_source.html | 124 ++- docs/_ray_collision_8hpp_source.html | 137 +++ docs/_rectangle_8hpp_source.html | 260 +++--- docs/_render_texture_8hpp_source.html | 115 ++- docs/_shader_8hpp_source.html | 186 ++-- docs/_sound_8hpp_source.html | 218 +++-- docs/_texture_8hpp_source.html | 351 +++---- docs/_vector4_8hpp_source.html | 276 +++--- docs/_wave_8hpp_source.html | 241 ++--- docs/annotated.html | 2 +- docs/classes.html | 2 +- .../classraylib_1_1_audio_stream-members.html | 44 +- docs/classraylib_1_1_audio_stream.html | 44 +- .../classraylib_1_1_bounding_box-members.html | 13 +- docs/classraylib_1_1_bounding_box.html | 18 +- docs/classraylib_1_1_camera2_d-members.html | 6 +- docs/classraylib_1_1_camera2_d.html | 22 +- docs/classraylib_1_1_camera3_d-members.html | 4 +- docs/classraylib_1_1_camera3_d.html | 105 ++- docs/classraylib_1_1_color-members.html | 6 +- docs/classraylib_1_1_color.html | 36 +- docs/classraylib_1_1_font-members.html | 57 +- docs/classraylib_1_1_font.html | 202 ++-- docs/classraylib_1_1_gamepad-members.html | 13 +- docs/classraylib_1_1_gamepad.html | 4 - docs/classraylib_1_1_image-members.html | 151 +-- docs/classraylib_1_1_image.html | 157 ++-- docs/classraylib_1_1_material-members.html | 4 + docs/classraylib_1_1_material.html | 20 +- docs/classraylib_1_1_matrix-members.html | 2 +- docs/classraylib_1_1_matrix.html | 70 +- docs/classraylib_1_1_mesh-members.html | 10 +- docs/classraylib_1_1_mesh.html | 149 ++- docs/classraylib_1_1_model-members.html | 6 +- docs/classraylib_1_1_model.html | 56 +- ...assraylib_1_1_model_animation-members.html | 4 + docs/classraylib_1_1_model_animation.html | 28 +- docs/classraylib_1_1_music-members.html | 27 +- docs/classraylib_1_1_music.html | 176 ++-- docs/classraylib_1_1_ray-members.html | 12 +- docs/classraylib_1_1_ray.html | 46 +- ...classraylib_1_1_ray_collision-members.html | 99 ++ docs/classraylib_1_1_ray_collision.html | 406 ++++++++ docs/classraylib_1_1_rectangle-members.html | 23 +- docs/classraylib_1_1_rectangle.html | 31 +- ...lassraylib_1_1_render_texture-members.html | 6 +- docs/classraylib_1_1_render_texture.html | 30 +- docs/classraylib_1_1_shader-members.html | 6 +- docs/classraylib_1_1_shader.html | 38 +- docs/classraylib_1_1_sound-members.html | 24 +- docs/classraylib_1_1_sound.html | 68 +- docs/classraylib_1_1_texture-members.html | 27 +- docs/classraylib_1_1_texture.html | 46 +- docs/classraylib_1_1_vector4-members.html | 3 +- docs/classraylib_1_1_vector4.html | 19 +- docs/classraylib_1_1_wave-members.html | 37 +- docs/classraylib_1_1_wave.html | 84 +- docs/functions.html | 5 +- docs/functions_c.html | 14 +- docs/functions_d.html | 2 +- docs/functions_e.html | 4 +- docs/functions_f.html | 2 +- docs/functions_func.html | 5 +- docs/functions_func_c.html | 14 +- docs/functions_func_d.html | 2 +- docs/functions_func_e.html | 4 +- docs/functions_func_f.html | 2 +- docs/functions_func_g.html | 54 +- docs/functions_func_i.html | 3 - docs/functions_func_l.html | 9 +- docs/functions_func_m.html | 5 +- docs/functions_func_o.html | 3 - docs/functions_func_p.html | 3 - docs/functions_func_r.html | 4 +- docs/functions_func_s.html | 44 +- docs/functions_func_u.html | 9 +- docs/functions_g.html | 54 +- docs/functions_i.html | 3 - docs/functions_l.html | 9 +- docs/functions_m.html | 5 +- docs/functions_o.html | 3 - docs/functions_p.html | 3 - docs/functions_r.html | 4 +- docs/functions_s.html | 44 +- docs/functions_u.html | 9 +- docs/index.html | 2 +- docs/namespacemembers.html | 3 - docs/namespacemembers_func.html | 3 - docs/namespaceraylib.html | 8 +- docs/physac_8hpp_source.html | 2 +- docs/raylib-cpp_8hpp_source.html | 2 +- docs/search/all_0.js | 13 +- docs/search/all_1.js | 8 +- docs/search/all_10.js | 239 ++--- docs/search/all_11.js | 24 +- docs/search/all_12.js | 22 +- docs/search/all_13.js | 8 +- docs/search/all_14.js | 6 +- docs/search/all_15.js | 2 +- docs/search/all_16.js | 10 +- docs/search/all_2.js | 48 +- docs/search/all_3.js | 24 +- docs/search/all_4.js | 12 +- docs/search/all_5.js | 16 +- docs/search/all_6.js | 254 +++-- docs/search/all_7.js | 4 +- docs/search/all_8.js | 48 +- docs/search/all_9.js | 2 +- docs/search/all_a.js | 41 +- docs/search/all_b.js | 24 +- docs/search/all_c.js | 2 +- docs/search/all_d.js | 19 +- docs/search/all_e.js | 13 +- docs/search/all_f.js | 30 +- docs/search/classes_0.js | 4 +- docs/search/classes_1.js | 2 +- docs/search/classes_2.js | 6 +- docs/search/classes_3.js | 2 +- docs/search/classes_4.js | 2 +- docs/search/classes_5.js | 2 +- docs/search/classes_6.js | 14 +- docs/search/classes_7.js | 2 +- docs/search/classes_8.js | 8 +- docs/search/classes_9.js | 4 +- docs/search/classes_a.js | 2 +- docs/search/classes_b.js | 8 +- docs/search/classes_c.js | 4 +- docs/search/functions_0.js | 17 +- docs/search/functions_1.js | 8 +- docs/search/functions_10.js | 235 ++--- docs/search/functions_11.js | 24 +- docs/search/functions_12.js | 22 +- docs/search/functions_13.js | 6 +- docs/search/functions_14.js | 2 +- docs/search/functions_15.js | 10 +- docs/search/functions_2.js | 45 +- docs/search/functions_3.js | 24 +- docs/search/functions_4.js | 12 +- docs/search/functions_5.js | 14 +- docs/search/functions_6.js | 258 +++-- docs/search/functions_7.js | 4 +- docs/search/functions_8.js | 46 +- docs/search/functions_9.js | 2 +- docs/search/functions_a.js | 41 +- docs/search/functions_b.js | 15 +- docs/search/functions_c.js | 2 +- docs/search/functions_d.js | 19 +- docs/search/functions_e.js | 11 +- docs/search/functions_f.js | 20 +- docs/search/namespaces_0.js | 2 +- docs/search/pages_0.js | 2 +- 166 files changed, 5716 insertions(+), 4439 deletions(-) create mode 100644 docs/_ray_collision_8hpp_source.html create mode 100644 docs/classraylib_1_1_ray_collision-members.html create mode 100644 docs/classraylib_1_1_ray_collision.html diff --git a/docs/_audio_stream_8hpp_source.html b/docs/_audio_stream_8hpp_source.html index fecc32d..655f164 100644 --- a/docs/_audio_stream_8hpp_source.html +++ b/docs/_audio_stream_8hpp_source.html @@ -84,101 +84,130 @@ $(function() {
14  set(music);
15  }
16 
-
20  AudioStream(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels) {
-
21  set(InitAudioStream(SampleRate, SampleSize, Channels));
+
20  AudioStream(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels = 2) {
+
21  set(LoadAudioStream(SampleRate, SampleSize, Channels));
22  }
23 
-
24  ~AudioStream() {
-
25  Close();
-
26  }
-
27 
-
28  GETTERSETTER(rAudioBuffer *, Buffer, buffer)
-
29  GETTERSETTER(unsigned int, SampleRate, sampleRate)
-
30  GETTERSETTER(unsigned int, SampleSize, sampleSize)
-
31  GETTERSETTER(unsigned int, Channels, channels)
-
32 
-
33  AudioStream& operator=(const ::AudioStream& stream) {
-
34  set(stream);
-
35  return *this;
-
36  }
-
37 
-
41  inline AudioStream& Update(const void *data, int samplesCount) {
-
42  ::UpdateAudioStream(*this, data, samplesCount);
-
43  return *this;
-
44  }
-
45 
-
49  inline void Close() {
-
50  ::CloseAudioStream(*this);
-
51  }
-
52 
-
56  inline bool IsProcessed() const {
-
57  return ::IsAudioStreamProcessed(*this);
-
58  }
-
59 
-
63  inline AudioStream& Play() {
-
64  ::PlayAudioStream(*this);
-
65  return *this;
-
66  }
-
67 
-
71  inline AudioStream& Pause() {
-
72  ::PauseAudioStream(*this);
-
73  return *this;
-
74  }
-
75 
-
79  inline AudioStream& Resume() {
-
80  ::ResumeAudioStream(*this);
-
81  return *this;
-
82  }
-
83 
-
87  inline bool IsPlaying() const {
-
88  return ::IsAudioStreamPlaying(*this);
-
89  }
-
90 
-
94  inline AudioStream& Stop() {
-
95  ::StopAudioStream(*this);
-
96  return *this;
-
97  }
-
98 
-
102  inline AudioStream& SetVolume(float volume) {
-
103  ::SetAudioStreamVolume(*this, volume);
-
104  return *this;
-
105  }
-
106 
-
110  inline AudioStream& SetPitch(float pitch) {
-
111  ::SetAudioStreamPitch(*this, pitch);
-
112  return *this;
-
113  }
-
114 
-
118  inline static void SetBufferSizeDefault(int size) {
-
119  ::SetAudioStreamBufferSizeDefault(size);
-
120  }
-
121 
-
122  private:
-
123  inline void set(const ::AudioStream& stream) {
-
124  buffer = stream.buffer;
-
125  sampleRate = stream.sampleRate;
-
126  sampleSize = stream.sampleSize;
-
127  channels = stream.channels;
-
128  }
-
129 };
-
130 } // namespace raylib
-
131 
-
132 #endif // RAYLIB_CPP_INCLUDE_AUDIOSTREAM_HPP_
+
24  AudioStream(const AudioStream&) = delete;
+
25 
+
26  AudioStream(AudioStream&& other) {
+
27  set(other);
+
28 
+
29  other.buffer = nullptr;
+
30  other.sampleRate = 0;
+
31  other.sampleSize = 0;
+
32  other.channels = 0;
+
33  }
+
34 
+
35  ~AudioStream() {
+
36  Unload();
+
37  }
+
38 
+
39  GETTERSETTER(rAudioBuffer *, Buffer, buffer)
+
40  GETTERSETTER(unsigned int, SampleRate, sampleRate)
+
41  GETTERSETTER(unsigned int, SampleSize, sampleSize)
+
42  GETTERSETTER(unsigned int, Channels, channels)
+
43 
+
44  AudioStream& operator=(const ::AudioStream& stream) {
+
45  set(stream);
+
46  return *this;
+
47  }
+
48 
+
49  AudioStream& operator=(const AudioStream&) = delete;
+
50 
+
51  AudioStream& operator=(AudioStream&& other) {
+
52  if (this == &other) {
+
53  return *this;
+
54  }
+
55 
+
56  Unload();
+
57  set(other);
+
58 
+
59  other.buffer = nullptr;
+
60  other.sampleRate = 0;
+
61  other.sampleSize = 0;
+
62  other.channels = 0;
+
63 
+
64  return *this;
+
65  }
+
66 
+
70  inline AudioStream& Update(const void *data, int samplesCount) {
+
71  ::UpdateAudioStream(*this, data, samplesCount);
+
72  return *this;
+
73  }
+
74 
+
78  inline void Unload() {
+
79  ::UnloadAudioStream(*this);
+
80  }
+
81 
+
85  inline bool IsProcessed() const {
+
86  return ::IsAudioStreamProcessed(*this);
+
87  }
+
88 
+
92  inline AudioStream& Play() {
+
93  ::PlayAudioStream(*this);
+
94  return *this;
+
95  }
+
96 
+
100  inline AudioStream& Pause() {
+
101  ::PauseAudioStream(*this);
+
102  return *this;
+
103  }
+
104 
+
108  inline AudioStream& Resume() {
+
109  ::ResumeAudioStream(*this);
+
110  return *this;
+
111  }
+
112 
+
116  inline bool IsPlaying() const {
+
117  return ::IsAudioStreamPlaying(*this);
+
118  }
+
119 
+
123  inline AudioStream& Stop() {
+
124  ::StopAudioStream(*this);
+
125  return *this;
+
126  }
+
127 
+
131  inline AudioStream& SetVolume(float volume) {
+
132  ::SetAudioStreamVolume(*this, volume);
+
133  return *this;
+
134  }
+
135 
+
139  inline AudioStream& SetPitch(float pitch) {
+
140  ::SetAudioStreamPitch(*this, pitch);
+
141  return *this;
+
142  }
+
143 
+
147  inline static void SetBufferSizeDefault(int size) {
+
148  ::SetAudioStreamBufferSizeDefault(size);
+
149  }
+
150 
+
151  private:
+
152  inline void set(const ::AudioStream& stream) {
+
153  buffer = stream.buffer;
+
154  sampleRate = stream.sampleRate;
+
155  sampleSize = stream.sampleSize;
+
156  channels = stream.channels;
+
157  }
+
158 };
+
159 } // namespace raylib
+
160 
+
161 #endif // RAYLIB_CPP_INCLUDE_AUDIOSTREAM_HPP_
All raylib-cpp classes and functions appear in the raylib namespace.
Definition: AudioDevice.hpp:7
-
bool IsPlaying() const
Check if audio stream is playing.
Definition: AudioStream.hpp:87
-
AudioStream & Stop()
Stop audio stream.
Definition: AudioStream.hpp:94
-
AudioStream & Update(const void *data, int samplesCount)
Update audio stream buffers with data.
Definition: AudioStream.hpp:41
-
void Close()
Close audio stream and free memory.
Definition: AudioStream.hpp:49
-
AudioStream & Resume()
Resume audio stream.
Definition: AudioStream.hpp:79
-
static void SetBufferSizeDefault(int size)
Default size for new audio streams.
-
AudioStream & Play()
Play audio stream.
Definition: AudioStream.hpp:63
-
bool IsProcessed() const
Check if any audio stream buffers requires refill.
Definition: AudioStream.hpp:56
-
AudioStream & Pause()
Pause audio stream.
Definition: AudioStream.hpp:71
-
AudioStream & SetPitch(float pitch)
Set pitch for audio stream (1.0 is base level)
+
bool IsPlaying() const
Check if audio stream is playing.
+
AudioStream & Stop()
Stop audio stream.
+
AudioStream & Update(const void *data, int samplesCount)
Update audio stream buffers with data.
Definition: AudioStream.hpp:70
+
AudioStream & Resume()
Resume audio stream.
+
static void SetBufferSizeDefault(int size)
Default size for new audio streams.
+
AudioStream(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels=2)
Init audio stream (to stream raw audio pcm data)
Definition: AudioStream.hpp:20
+
AudioStream & Play()
Play audio stream.
Definition: AudioStream.hpp:92
+
bool IsProcessed() const
Check if any audio stream buffers requires refill.
Definition: AudioStream.hpp:85
+
AudioStream & Pause()
Pause audio stream.
+
AudioStream & SetPitch(float pitch)
Set pitch for audio stream (1.0 is base level)
AudioStream management functions.
Definition: AudioStream.hpp:11
-
AudioStream & SetVolume(float volume)
Set volume for audio stream (1.0 is max level)
-
AudioStream(unsigned int SampleRate, unsigned int SampleSize, unsigned int Channels)
Init audio stream (to stream raw audio pcm data)
Definition: AudioStream.hpp:20
+
AudioStream & SetVolume(float volume)
Set volume for audio stream (1.0 is max level)
+
void Unload()
Unload audio stream and free memory.
Definition: AudioStream.hpp:78