Top Fields Constructors Methods
jogamp.opengl.windows.wgl

public Class WindowsBitmapWGLDrawable

extends WindowsWGLDrawable
Class Inheritance
Imports
com.jogamp.nativewindow.AbstractGraphicsDevice, .NativeSurface, .MutableSurface, com.jogamp.opengl.GLCapabilitiesImmutable, .GLContext, .GLDrawableFactory, .GLException, .GLProfile, jogamp.nativewindow.windows.BITMAPINFO, .BITMAPINFOHEADER, .GDI, jogamp.opengl.GLGraphicsConfigurationUtil, com.jogamp.common.nio.PointerBuffer

Field Summary

Modifier and TypeField and Description
private long
private long

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
protected static WindowsBitmapWGLDrawable
create(final GLDrawableFactory factory, final NativeSurface comp)

private void
public GLContext
createContext(final GLContext shareWith)

Implements com.jogamp.opengl.GLDrawable.createContext.

Creates a new context for drawing to this drawable that will optionally share buffer objects, textures and other server-side OpenGL objects with the specified GLContext.
protected void
public boolean
isGLOriented()

Overrides jogamp.opengl.GLDrawableImpl.isGLOriented.

Implements com.jogamp.opengl.GLDrawable.isGLOriented.

Returns true if the drawable is rendered in OpenGL's coordinate system, origin at bottom left.
protected void
setRealizedImpl()

Overrides jogamp.opengl.windows.wgl.WindowsWGLDrawable.setRealizedImpl.

Platform specific realization of drawable
Inherited from jogamp.opengl.windows.wgl.WindowsWGLDrawable:
swapBuffersImpl

Field Detail

hbitmapback to summary
private long hbitmap
origbitmapback to summary
private long origbitmap

Constructor Detail

WindowsBitmapWGLDrawableback to summary
private WindowsBitmapWGLDrawable(final GLDrawableFactory factory, final NativeSurface comp)

Method Detail

createback to summary
protected static WindowsBitmapWGLDrawable create(final GLDrawableFactory factory, final NativeSurface comp)
createBitmapback to summary
private void createBitmap()
createContextback to summary
public GLContext createContext(final GLContext shareWith)

Implements com.jogamp.opengl.GLDrawable.createContext.

Doc from com.jogamp.opengl.GLDrawable.createContext.

Creates a new context for drawing to this drawable that will optionally share buffer objects, textures and other server-side OpenGL objects with the specified GLContext.

The GLContext share need not be associated with this GLDrawable and may be null if sharing of display lists and other objects is not desired. See the note in the overview documentation context sharing as well as GLSharedContextSetter.

Annotations
@Override
destroyBitmapback to summary
protected void destroyBitmap()
isGLOrientedback to summary
public boolean isGLOriented()

Overrides jogamp.opengl.GLDrawableImpl.isGLOriented.

Implements com.jogamp.opengl.GLDrawable.isGLOriented.

Doc from com.jogamp.opengl.GLDrawable.isGLOriented.

Returns true if the drawable is rendered in OpenGL's coordinate system, origin at bottom left. Otherwise returns false, i.e. origin at top left.

Default impl. is true, i.e. OpenGL coordinate system.

Currently only MS-Windows bitmap offscreen drawable uses a non OpenGL orientation and hence returns false.
This removes the need of a vertical flip when used in AWT or Windows applications.

Annotations
@Override
setRealizedImplback to summary
protected void setRealizedImpl()

Overrides jogamp.opengl.windows.wgl.WindowsWGLDrawable.setRealizedImpl.

Doc from jogamp.opengl.GLDrawableImpl.setRealizedImpl.

Platform specific realization of drawable

Annotations
@Override