Remove deprecaded functions, fix build errors/warnings

This commit is contained in:
JupiterRider 2023-04-07 21:22:05 +02:00
parent e0ea1245da
commit 9e86471b2f
5 changed files with 7 additions and 76 deletions

View file

@ -686,28 +686,6 @@ func DrawTextureRec(texture Texture2D, sourceRec Rectangle, position Vector2, ti
C.DrawTextureRec(*ctexture, *csourceRec, *cposition, *ctint)
}
// DrawTextureQuad - Draw texture quad with tiling and offset parameters
func DrawTextureQuad(texture Texture2D, tiling, offset Vector2, rectangle Rectangle, tint color.RGBA) {
ctexture := texture.cptr()
ctiling := tiling.cptr()
coffset := offset.cptr()
crectangle := rectangle.cptr()
ctint := colorCptr(tint)
C.DrawTextureQuad(*ctexture, *ctiling, *coffset, *crectangle, *ctint)
}
// DrawTextureTiled - Draw part of a texture (defined by a rectangle) with rotation and scale tiled into dest
func DrawTextureTiled(texture Texture2D, sourceRec, destRec Rectangle, origin Vector2, rotation float32, scale float32, tint color.RGBA) {
ctexture := texture.cptr()
csourceRec := sourceRec.cptr()
cdestRec := destRec.cptr()
corigin := origin.cptr()
crotation := (C.float)(rotation)
cscale := (C.float)(scale)
ctint := colorCptr(tint)
C.DrawTextureTiled(*ctexture, *csourceRec, *cdestRec, *corigin, crotation, cscale, *ctint)
}
// DrawTexturePro - Draw a part of a texture defined by a rectangle with 'pro' parameters
func DrawTexturePro(texture Texture2D, sourceRec, destRec Rectangle, origin Vector2, rotation float32, tint color.RGBA) {
ctexture := texture.cptr()