org.ogre4j
Class GpuProgramUsage

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.GpuProgramUsage
All Implemented Interfaces:
IAllocatedObject<IResourceAllocPolicy>, IGpuProgramUsage, IResourceAllocatedObject, INativeObject

public class GpuProgramUsage
extends NativeObject
implements IGpuProgramUsage


Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  GpuProgramUsage(GpuProgramType gptype)
          Default constructor.
  GpuProgramUsage(IGpuProgramUsage rhs)
          Copy constructor
  GpuProgramUsage(InstancePointer p)
          This constructor is public for internal useage only!
protected GpuProgramUsage(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  GpuProgramUsage(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _load()
           
 void _unload()
           
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 void getParameters(IGpuProgramParametersSharedPtr returnValue)
          Gets the parameters being used here.
 IGpuProgramPtr getProgram()
          Gets the program being used.
 java.lang.String getProgramName()
          Gets the program being used.
 GpuProgramType getType()
          Gets the type of program we're trying to link to.
 void setParameters(IGpuProgramParametersSharedPtr params)
          Sets the program parameters that should be used; because parameters can be shared between multiple usages for efficiency, this method is here for you to register externally created parameter objects.
 void setProgram(IGpuProgramPtr prog)
          Sets the program to use.
 void setProgramName(java.lang.String name, boolean resetParams)
          Sets the name of the program to use.
 
Methods inherited from class org.xbig.base.NativeObject
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.xbig.base.INativeObject
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Constructor Detail

GpuProgramUsage

public GpuProgramUsage(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


GpuProgramUsage

protected GpuProgramUsage(InstancePointer p,
                          boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


GpuProgramUsage

public GpuProgramUsage(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

GpuProgramUsage

public GpuProgramUsage(GpuProgramType gptype)
Default constructor.


GpuProgramUsage

public GpuProgramUsage(IGpuProgramUsage rhs)
Copy constructor

Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

getType

public GpuProgramType getType()
Gets the type of program we're trying to link to.

Specified by:
getType in interface IGpuProgramUsage

setProgramName

public void setProgramName(java.lang.String name,
                           boolean resetParams)
Sets the name of the program to use.

Specified by:
setProgramName in interface IGpuProgramUsage

setProgram

public void setProgram(IGpuProgramPtr prog)
Sets the program to use.

Specified by:
setProgram in interface IGpuProgramUsage

getProgram

public IGpuProgramPtr getProgram()
Gets the program being used.

Specified by:
getProgram in interface IGpuProgramUsage

getProgramName

public java.lang.String getProgramName()
Gets the program being used.

Specified by:
getProgramName in interface IGpuProgramUsage

setParameters

public void setParameters(IGpuProgramParametersSharedPtr params)
Sets the program parameters that should be used; because parameters can be shared between multiple usages for efficiency, this method is here for you to register externally created parameter objects. Otherwise, the parameters will be created for you when a program is linked.

Specified by:
setParameters in interface IGpuProgramUsage

getParameters

public void getParameters(IGpuProgramParametersSharedPtr returnValue)
Gets the parameters being used here.

Specified by:
getParameters in interface IGpuProgramUsage

_load

public void _load()
Specified by:
_load in interface IGpuProgramUsage

_unload

public void _unload()
Specified by:
_unload in interface IGpuProgramUsage


Copyright © 2007 netAllied GmbH. All Rights Reserved.