Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 0 additions & 71 deletions include/TextureUnmanaged.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -231,16 +231,6 @@ class TextureUnmanaged : public ::Texture {
::DrawTextureRec(*this, sourceRec, position, tint);
}

/**
* Draw texture quad with tiling and offset parameters
*
* @see ::DrawTextureQuad()
*/
inline void Draw(::Vector2 tiling, ::Vector2 offset, ::Rectangle quad,
::Color tint = {255, 255, 255, 255}) const {
::DrawTextureQuad(*this, tiling, offset, quad, tint);
}

/**
* Draw a part of a texture defined by a rectangle with 'pro' parameters
*
Expand All @@ -261,27 +251,6 @@ class TextureUnmanaged : public ::Texture {
::DrawTextureNPatch(*this, nPatchInfo, destRec, origin, rotation, tint);
}

/**
* Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest.
*
* @see ::DrawTextureTiled()
*/
inline void DrawTiled(::Rectangle sourceRec, ::Rectangle destRec, ::Vector2 origin = {0, 0},
float rotation = 0, float scale = 1, Color tint = {255, 255, 255, 255}) const {
::DrawTextureTiled(*this, sourceRec, destRec, origin, rotation, scale, tint);
}

/**
* Draw a textured polygon
*
* @see ::DrawTexturePoly()
*/
inline void DrawPoly(::Vector2 center, ::Vector2 *points,
::Vector2 *texcoords, int pointsCount,
::Color tint = {255, 255, 255, 255}) const {
::DrawTexturePoly(*this, center, points, texcoords, pointsCount, tint);
}

/**
* Draw a billboard texture
*
Expand Down Expand Up @@ -316,46 +285,6 @@ class TextureUnmanaged : public ::Texture {
DrawBillboardPro(camera, *this, source, position, up, size, origin, rotation, tint);
}

/**
* Draw cube textured
*
* @see ::DrawCubeTexture()
*/
inline void DrawCube(::Vector3 position, float width, float height, float length,
::Color color = {255, 255, 255, 255}) const {
::DrawCubeTexture(*this, position, width, height, length, color);
}

/**
* Draw cube textured, with dimensions
*
* @see ::DrawCubeTexture()
*/
inline void DrawCube(::Vector3 position, ::Vector3 dimensions,
::Color color = {255, 255, 255, 255}) const {
::DrawCubeTexture(*this, position, dimensions.x, dimensions.y, dimensions.z, color);
}

/**
* Draw cube with a region of a texture
*
* @see ::DrawCubeTextureRec()
*/
inline void DrawCube(::Rectangle source, ::Vector3 position, float width, float height, float length,
::Color color = {255, 255, 255, 255}) const {
::DrawCubeTextureRec(*this, source, position, width, height, length, color);
}

/**
* Draw cube with a region of a texture, with dimensions
*
* @see ::DrawCubeTextureRec()
*/
inline void DrawCube(::Rectangle source, ::Vector3 position, ::Vector3 dimensions,
::Color color = {255, 255, 255, 255}) const {
::DrawCubeTextureRec(*this, source, position, dimensions.x, dimensions.y, dimensions.z, color);
}

/**
* Set texture for a material map type (MAP_DIFFUSE, MAP_SPECULAR...)
*/
Expand Down
9 changes: 0 additions & 9 deletions include/Vector3.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,15 +296,6 @@ class Vector3 : public ::Vector3 {
::DrawCubeWiresV(*this, size, color);
}

inline void DrawCubeTexture(
const ::Texture2D& texture,
float width,
float height,
float length,
::Color color) const {
::DrawCubeTexture(texture, *this, width, height, length, color);
}

inline void DrawSphere(float radius, ::Color color) const {
::DrawSphere(*this, radius, color);
}
Expand Down