Revision: 668
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=668&view=rev
Author: mithro
Date: 2008-07-23 06:08:39 +0000 (Wed, 23 Jul 2008)
Log Message:
-----------
Mark the structures as opaque.
Modified Paths:
--------------
trunk/python-ogre/code_generators/ogreal/generate_code.py
Modified: trunk/python-ogre/code_generators/ogreal/generate_code.py
===================================================================
--- trunk/python-ogre/code_generators/ogreal/generate_code.py 2008-07-22 12:18:39 UTC (rev 667)
+++ trunk/python-ogre/code_generators/ogreal/generate_code.py 2008-07-23 06:08:39 UTC (rev 668)
@@ -101,6 +101,13 @@
else:
main_ns = global_ns
+ # Mark both these types are opaque
+ device = main_ns.decl("ALCdevice_struct")
+ device.opaque = True
+
+ context = main_ns.decl("ALCcontext_struct")
+ context.opaque = True
+
############################################################
##
## And things that need to have their argument and call values fixed.
@@ -247,7 +254,7 @@
global_ns.exclude()
main_ns = global_ns.namespace( MAIN_NAMESPACE )
main_ns.include()
-
+
common_utils.AutoExclude ( mb, MAIN_NAMESPACE )
ManualExclude ( mb )
common_utils.AutoInclude ( mb, MAIN_NAMESPACE )
@@ -276,8 +283,7 @@
## need to create a welcome doc string for this...
common_utils.add_constants( mb, { '__doc__' : '"ogreal DESCRIPTION"' } )
-
-
+
##########################################################################################
#
# Creating the code. After this step you should not modify/customize declarations.
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|