|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
T
- The resource typeinterface ResourceHandle<T>
Interface for classes that act as a handle to a resource that
may have to be acquired before it can be used, and to be
released after it has been used.
This interface is mainly intended to factor out the different
usage of memory objects or buffers that have been created
directly or by sharing OpenGL resources.
Method Summary | |
---|---|
void |
acquire()
Has to be called before the resource may be obtained |
T |
get()
Returns the resource from this handle. |
void |
release()
Has to be called as soon as the resource is not used any more |
Method Detail |
---|
T get()
acquire()
and
release()
. Clients should preferably not store the
returned object, but always access the resource by calling
this method. This method may return null
if the
resource has not properly been acquired.
void acquire()
void release()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |