Skip to content

Commit

Permalink
SWIG: fix typed enums in Csharp
Browse files Browse the repository at this point in the history
  • Loading branch information
paroj committed Mar 7, 2024
1 parent e659c7b commit d965602
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion OgreMain/include/Ogre.i
Original file line number Diff line number Diff line change
Expand Up @@ -184,12 +184,15 @@ JNIEnv* OgreJNIGetEnv() {
#endif

#ifdef SWIGCSHARP
typedef uint32_t uint32;
typedef uint16_t uint16;
typedef uint8_t uint8;

%ignore Ogre::HardwareBuffer::UsageEnum;
%ignore Ogre::TextureUsage;
%ignore Ogre::GpuConstantType;
%ignore Ogre::GpuProgramParameters::ElementType;
%ignore Ogre::Capabilities;
%typemap(csbase) Ogre::SceneManager::QueryTypeMask "uint";
%csmethodmodifiers *::ToString "public override";
// wrong "override" because of multiple inheritance
%csmethodmodifiers *::getMaterial "public";
Expand Down

0 comments on commit d965602

Please sign in to comment.