Skip to content

Commit 74ba19d

Browse files
committed
Removed texture type.
1 parent 9542bf9 commit 74ba19d

File tree

1 file changed

+5
-14
lines changed

1 file changed

+5
-14
lines changed

src/raylib.f90

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,6 @@ module raylib
7777
integer(kind=c_int) :: format = 0
7878
end type image_type
7979

80-
! Texture
81-
type, bind(c), public :: texture_type
82-
integer(kind=c_unsigned_int) :: id = 0
83-
integer(kind=c_int) :: width = 0
84-
integer(kind=c_int) :: height = 0
85-
integer(kind=c_int) :: mipmaps = 0
86-
integer(kind=c_int) :: format = 0
87-
end type texture_type
88-
8980
! Texture2D
9081
type, bind(c), public :: texture2d_type
9182
integer(kind=c_unsigned_int) :: id = 0
@@ -107,15 +98,15 @@ module raylib
10798
! RenderTexture
10899
type, bind(c), public :: render_texture_type
109100
integer(kind=c_unsigned_int) :: id = 0
110-
type(texture_type) :: texture
111-
type(texture_type) :: depth
101+
type(texture2d_type) :: texture
102+
type(texture2d_type) :: depth
112103
end type render_texture_type
113104

114105
! RenderTexture2D
115106
type, bind(c), public :: render_texture2d_type
116107
integer(kind=c_unsigned_int) :: id = 0
117-
type(texture_type) :: texture
118-
type(texture_type) :: depth
108+
type(texture2d_type) :: texture
109+
type(texture2d_type) :: depth
119110
end type render_texture2d_type
120111

121112
! NPatchInfo
@@ -4460,7 +4451,7 @@ function load_sound_from_wave(wave) bind(c, name='LoadSoundFromWave')
44604451
type(sound_type) :: load_sound_from_wave
44614452
end function load_sound_from_wave
44624453

4463-
! Texture2D LoadTexture(const char *fileName) // Load texture from file into GPU memory (VRAM)
4454+
! Texture2D LoadTexture(const char *fileName)
44644455
function load_texture(file_name) bind(c, name='LoadTexture')
44654456
import :: c_char, texture2d_type
44664457
implicit none

0 commit comments

Comments
 (0)