summaryrefslogtreecommitdiff
path: root/lib/wx/src/gen/gl.erl
diff options
context:
space:
mode:
Diffstat (limited to 'lib/wx/src/gen/gl.erl')
-rw-r--r--lib/wx/src/gen/gl.erl22
1 files changed, 12 insertions, 10 deletions
diff --git a/lib/wx/src/gen/gl.erl b/lib/wx/src/gen/gl.erl
index d1c6e76937..283af4a869 100644
--- a/lib/wx/src/gen/gl.erl
+++ b/lib/wx/src/gen/gl.erl
@@ -1,7 +1,7 @@
%%
%% %CopyrightBegin%
%%
-%% Copyright Ericsson AB 2008-2022. All Rights Reserved.
+%% Copyright Ericsson AB 2008-2023. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
@@ -238,7 +238,7 @@
texStorage2DMultisample/6,texStorage3DMultisample/7,textureView/8,
bindVertexBuffer/4,vertexAttribFormat/5,vertexAttribIFormat/4,vertexAttribLFormat/4,
vertexAttribBinding/2,vertexBindingDivisor/2,debugMessageControl/5,
- debugMessageInsert/6,getDebugMessageLog/2,pushDebugGroup/4,popDebugGroup/0,
+ debugMessageInsert/5,getDebugMessageLog/2,pushDebugGroup/4,popDebugGroup/0,
objectPtrLabel/3,bufferStorage/4,clearTexImage/5,clearTexSubImage/11,
bindBuffersBase/3,bindBuffersRange/5,bindTextures/2,bindSamplers/2,
bindImageTextures/2,bindVertexBuffers/4,clipControl/2,createTransformFeedbacks/1,
@@ -299,8 +299,8 @@
bindAttribLocationARB/3,getActiveAttribARB/3,getAttribLocationARB/2,
blendBarrierKHR/0,maxShaderCompilerThreadsKHR/1,depthBoundsEXT/2]).
--export([get_interface/0, rec/1, lookup_func/0]).
--nifs([lookup_func/0]).
+-export([get_interface/0, rec/1, lookup_func/1]).
+-nifs([lookup_func_nif/1]).
-define(nif_stub,nif_stub_error(?LINE)).
%% @hidden
nif_stub_error(Line) ->
@@ -332,7 +332,10 @@ rec(Op) ->
rec(Op)
end.
-lookup_func() -> ?nif_stub.
+lookup_func(functions) -> lookup_func_nif(1);
+lookup_func(function_names) -> lookup_func_nif(2).
+
+lookup_func_nif(_Func) -> ?nif_stub.
@@ -5116,15 +5119,14 @@ debugMessageControl(Source,Type,Severity,Ids,Enabled) when is_integer(Source),is
IF:queue_cmd(Source,Type,Severity,Count,Ids,Enabled,5802),
ok.
--spec debugMessageInsert(Source, Type, Id, Severity, Length, Buf) -> 'ok'
- when Source::enum(), Type::enum(), Id::i(), Severity::enum(), Length::i(), Buf::string().
-debugMessageInsert(Source,Type,Id,Severity,Length,Buf) when is_integer(Source),is_integer(Type),is_integer(Id),is_integer(Severity),is_integer(Length),is_list(Buf) ->
+-spec debugMessageInsert(Source::enum(), Type::enum(), Id::i(), Severity::enum(), Buf::string()) -> 'ok'.
+debugMessageInsert(Source,Type,Id,Severity,Buf) when is_integer(Source),is_integer(Type),is_integer(Id),is_integer(Severity),is_list(Buf) ->
IF = get_interface(),
BufBin = unicode:characters_to_binary([Buf|[0]]),
- IF:queue_cmd(Source,Type,Id,Severity,Length,BufBin,5803),
+ IF:queue_cmd(Source,Type,Id,Severity,BufBin,5803),
ok.
--spec getDebugMessageLog(Count::i(), BufSize::i()) -> {i(),Sources::[enum()],Types::[enum()],Ids::[i()],Severities::[enum()],MessageLog::string()}.
+-spec getDebugMessageLog(Count::i(), BufSize::i()) -> {i(),Sources::[enum()],Types::[enum()],Ids::[i()],Severities::[enum()],MessageLog::[string()]}.
getDebugMessageLog(Count,BufSize) when is_integer(Count),is_integer(BufSize) ->
IF = get_interface(),
IF:queue_cmd(Count,BufSize,5804),