Skip to content

Commit b310c1f

Browse files
authored
Merge pull request #233 from pkeir/master
Minimal function removals to accommodate removal in Raylib of ::DrawC…
2 parents 946555f + c5e31e1 commit b310c1f

File tree

2 files changed

+0
-80
lines changed

2 files changed

+0
-80
lines changed

include/TextureUnmanaged.hpp

Lines changed: 0 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -231,16 +231,6 @@ class TextureUnmanaged : public ::Texture {
231231
::DrawTextureRec(*this, sourceRec, position, tint);
232232
}
233233

234-
/**
235-
* Draw texture quad with tiling and offset parameters
236-
*
237-
* @see ::DrawTextureQuad()
238-
*/
239-
inline void Draw(::Vector2 tiling, ::Vector2 offset, ::Rectangle quad,
240-
::Color tint = {255, 255, 255, 255}) const {
241-
::DrawTextureQuad(*this, tiling, offset, quad, tint);
242-
}
243-
244234
/**
245235
* Draw a part of a texture defined by a rectangle with 'pro' parameters
246236
*
@@ -261,27 +251,6 @@ class TextureUnmanaged : public ::Texture {
261251
::DrawTextureNPatch(*this, nPatchInfo, destRec, origin, rotation, tint);
262252
}
263253

264-
/**
265-
* Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.
266-
*
267-
* @see ::DrawTextureTiled()
268-
*/
269-
inline void DrawTiled(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin = {0, 0},
270-
float rotation = 0, float scale = 1, Color tint = {255, 255, 255, 255}) const {
271-
::DrawTextureTiled(*this, sourceRec, destRec, origin, rotation, scale, tint);
272-
}
273-
274-
/**
275-
* Draw a textured polygon
276-
*
277-
* @see ::DrawTexturePoly()
278-
*/
279-
inline void DrawPoly(::Vector2 center, ::Vector2 *points,
280-
::Vector2 *texcoords, int pointsCount,
281-
::Color tint = {255, 255, 255, 255}) const {
282-
::DrawTexturePoly(*this, center, points, texcoords, pointsCount, tint);
283-
}
284-
285254
/**
286255
* Draw a billboard texture
287256
*
@@ -316,46 +285,6 @@ class TextureUnmanaged : public ::Texture {
316285
DrawBillboardPro(camera, *this, source, position, up, size, origin, rotation, tint);
317286
}
318287

319-
/**
320-
* Draw cube textured
321-
*
322-
* @see ::DrawCubeTexture()
323-
*/
324-
inline void DrawCube(::Vector3 position, float width, float height, float length,
325-
::Color color = {255, 255, 255, 255}) const {
326-
::DrawCubeTexture(*this, position, width, height, length, color);
327-
}
328-
329-
/**
330-
* Draw cube textured, with dimensions
331-
*
332-
* @see ::DrawCubeTexture()
333-
*/
334-
inline void DrawCube(::Vector3 position, ::Vector3 dimensions,
335-
::Color color = {255, 255, 255, 255}) const {
336-
::DrawCubeTexture(*this, position, dimensions.x, dimensions.y, dimensions.z, color);
337-
}
338-
339-
/**
340-
* Draw cube with a region of a texture
341-
*
342-
* @see ::DrawCubeTextureRec()
343-
*/
344-
inline void DrawCube(::Rectangle source, ::Vector3 position, float width, float height, float length,
345-
::Color color = {255, 255, 255, 255}) const {
346-
::DrawCubeTextureRec(*this, source, position, width, height, length, color);
347-
}
348-
349-
/**
350-
* Draw cube with a region of a texture, with dimensions
351-
*
352-
* @see ::DrawCubeTextureRec()
353-
*/
354-
inline void DrawCube(::Rectangle source, ::Vector3 position, ::Vector3 dimensions,
355-
::Color color = {255, 255, 255, 255}) const {
356-
::DrawCubeTextureRec(*this, source, position, dimensions.x, dimensions.y, dimensions.z, color);
357-
}
358-
359288
/**
360289
* Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
361290
*/

include/Vector3.hpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -296,15 +296,6 @@ class Vector3 : public ::Vector3 {
296296
::DrawCubeWiresV(*this, size, color);
297297
}
298298

299-
inline void DrawCubeTexture(
300-
const ::Texture2D& texture,
301-
float width,
302-
float height,
303-
float length,
304-
::Color color) const {
305-
::DrawCubeTexture(texture, *this, width, height, length, color);
306-
}
307-
308299
inline void DrawSphere(float radius, ::Color color) const {
309300
::DrawSphere(*this, radius, color);
310301
}

0 commit comments

Comments
 (0)