Skip to content

Commit 14b125a

Browse files
committed
Remove old code
1 parent 76f8388 commit 14b125a

File tree

5 files changed

+0
-4329
lines changed

5 files changed

+0
-4329
lines changed

src/ModernGL.jl

-34
Original file line numberDiff line numberDiff line change
@@ -60,40 +60,6 @@ isavailable(ptr::Ptr{Cvoid}) = !(
6060
ptr == convert(Ptr{Cvoid}, 3)
6161
)
6262

63-
abstract type Enum end
64-
65-
macro GenEnums(list)
66-
tmp = list.args
67-
enumName = tmp[2]
68-
splice!(tmp, 1:2)
69-
enumType = typeof(eval(tmp[4].args[1].args[2]))
70-
enumdict1 = Dict{enumType, Symbol}()
71-
for elem in tmp
72-
if Meta.isexpr(elem, :const)
73-
enumdict1[eval(elem.args[1].args[2])] = elem.args[1].args[1]
74-
end
75-
end
76-
dictname = gensym()
77-
enumtype = quote
78-
struct $(enumName){Sym, T} <: Enum
79-
number::T
80-
name::Symbol
81-
end
82-
$(dictname) = $enumdict1
83-
function $(enumName)(number::T) where T
84-
if !haskey($(dictname), number)
85-
error("$number is not a GLenum")
86-
end
87-
$(enumName){$(dictname)[number], T}(number, $(dictname)[number])
88-
end
89-
90-
end
91-
esc(Expr(:block, enumtype, tmp..., Expr(:export, :($(enumName)))))
92-
end
93-
94-
include("glTypes.jl")
95-
include("functionloading.jl")
96-
include("glConstants.jl")
9763
include("gl.jl")
9864

9965
end # module

src/functionloading.jl

-81
This file was deleted.

0 commit comments

Comments
 (0)