aboutsummaryrefslogtreecommitdiffstats
path: root/lib/wx/api_gen/wx_gen_cpp.erl
diff options
context:
space:
mode:
authorDan Gudmundsson <[email protected]>2010-11-26 15:10:27 +0100
committerDan Gudmundsson <[email protected]>2010-11-26 15:10:27 +0100
commit8339345b4e7e0b2f6520af9ecf512c7a8e538276 (patch)
tree0f165c27fcd9ce0b3a367c2284ce2a992e6c2d2b /lib/wx/api_gen/wx_gen_cpp.erl
parent99a28d961d2d760e98353b55991f1fc51dee06b0 (diff)
parentabc92a6f3b4615e596992eda153da0c09a3c7cbf (diff)
downloadotp-8339345b4e7e0b2f6520af9ecf512c7a8e538276.tar.gz
otp-8339345b4e7e0b2f6520af9ecf512c7a8e538276.tar.bz2
otp-8339345b4e7e0b2f6520af9ecf512c7a8e538276.zip
Merge branch 'dgud/wx/separate-opengl' into dev
* dgud/wx/separate-opengl: Fix non available opengl functions Add lib paths for *bsd variants Initilize opengl after setCurrent Update to OpenGL 4.1 Remove ostype sub dirs below wx/priv Windows and Mac build issues Add dialyser spec Better make dependecies for api generation Split opengl functionality into separate dynamic library
Diffstat (limited to 'lib/wx/api_gen/wx_gen_cpp.erl')
-rw-r--r--lib/wx/api_gen/wx_gen_cpp.erl12
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/wx/api_gen/wx_gen_cpp.erl b/lib/wx/api_gen/wx_gen_cpp.erl
index 846cec46c4..4b33068d8f 100644
--- a/lib/wx/api_gen/wx_gen_cpp.erl
+++ b/lib/wx/api_gen/wx_gen_cpp.erl
@@ -152,6 +152,7 @@ gen_funcs(Defs) ->
w("#include \"../wxe_impl.h\"~n"),
w("#include \"../wxe_events.h\"~n"),
w("#include \"../wxe_return.h\"~n"),
+ w("#include \"../wxe_gl.h\"~n"),
w("#include \"wxe_macros.h\"~n"),
w("#include \"wxe_derived_dest.h\"~n~n"),
@@ -176,6 +177,9 @@ gen_funcs(Defs) ->
" rt.addAtom(\"ok\");~n"
" break;~n"
" }~n"),
+ w(" case WXE_BIN_INCR:~n driver_binary_inc_refc(Ecmd.bin[0]->bin);~n break;~n",[]),
+ w(" case WXE_BIN_DECR:~n driver_binary_dec_refc(Ecmd.bin[0]->bin);~n break;~n",[]),
+ w(" case WXE_INIT_OPENGL:~n wxe_initOpenGL(rt, bp);~n break;~n",[]),
Res = [gen_class(Class) || Class <- Defs],
@@ -265,13 +269,13 @@ gen_method(CName, M=#method{name=N,params=Ps0,type=T,method_type=MT,id=MethodId
Opts = [Opt || Opt = #param{def=Def,in=In,where=Where} <- Ps2,
Def =/= none, In =/= false, Where =/= c],
decode_options(Opts, Align),
- case M#method.pre_hook of
- undefined -> skip;
+ case gen_util:get_hook(c, M#method.pre_hook) of
+ ignore -> skip;
Pre -> w(" ~s;~n", [Pre])
end,
Ps3 = call_wx(N,{MT,CName},T,Ps2),
- case M#method.post_hook of
- undefined -> skip;
+ case gen_util:get_hook(c, M#method.post_hook) of
+ ignore -> skip;
Post -> w(" ~s;~n", [Post])
end,
free_args(),