@@ -677,6 +677,41 @@ pub fn Wrap(comptime bindings: anytype) type {
677677 texture_cube_map_array = TEXTURE_CUBE_MAP_ARRAY ,
678678 };
679679
680+ pub const TexUnit = enum (Enum ) {
681+ texture_0 = TEXTURE0 ,
682+ texture_1 = TEXTURE1 ,
683+ texture_2 = TEXTURE2 ,
684+ texture_3 = TEXTURE3 ,
685+ texture_4 = TEXTURE4 ,
686+ texture_5 = TEXTURE5 ,
687+ texture_6 = TEXTURE6 ,
688+ texture_7 = TEXTURE7 ,
689+ texture_8 = TEXTURE8 ,
690+ texture_9 = TEXTURE9 ,
691+ texture_10 = TEXTURE10 ,
692+ texture_11 = TEXTURE11 ,
693+ texture_12 = TEXTURE12 ,
694+ texture_13 = TEXTURE13 ,
695+ texture_14 = TEXTURE14 ,
696+ texture_15 = TEXTURE15 ,
697+ texture_16 = TEXTURE16 ,
698+ texture_17 = TEXTURE17 ,
699+ texture_18 = TEXTURE18 ,
700+ texture_19 = TEXTURE19 ,
701+ texture_20 = TEXTURE20 ,
702+ texture_21 = TEXTURE21 ,
703+ texture_22 = TEXTURE22 ,
704+ texture_23 = TEXTURE23 ,
705+ texture_24 = TEXTURE24 ,
706+ texture_25 = TEXTURE25 ,
707+ texture_26 = TEXTURE26 ,
708+ texture_27 = TEXTURE27 ,
709+ texture_28 = TEXTURE28 ,
710+ texture_29 = TEXTURE29 ,
711+ texture_30 = TEXTURE30 ,
712+ texture_31 = TEXTURE31 ,
713+ };
714+
680715 pub const TexImageTarget = enum (Enum ) {
681716 //--------------------------------------------------------------------------------------
682717 // OpenGL 1.0 (Core Profile)
@@ -2156,6 +2191,9 @@ pub fn Wrap(comptime bindings: anytype) type {
21562191 pub const CLAMP_TO_BORDER = bindings .CLAMP_TO_BORDER ;
21572192
21582193 // pub var activeTexture: *const fn (texture: Enum) callconv(.C) void = undefined;
2194+ pub fn activeTexture (texture_unit : TexUnit ) void {
2195+ bindings .activeTexture (@intFromEnum (texture_unit ));
2196+ }
21592197 // pub var sampleCoverage: *const fn (value: Float, invert: Boolean) callconv(.C) void = undefined;
21602198 // pub var compressedTexImage3D: *const fn (
21612199 // target: Enum,
0 commit comments