aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/games/jogl/impl/windows/WindowsGLContext.java
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2005-07-17 18:59:50 +0000
committerKenneth Russel <[email protected]>2005-07-17 18:59:50 +0000
commit9ccfb4b547a75be721d9bbc2d760e51f170832cd (patch)
tree826915fbdc242aebb1d8175577db79644cd291c3 /src/net/java/games/jogl/impl/windows/WindowsGLContext.java
parent7e7e225eaf4fddb31152ab204bf1776f26079d40 (diff)
Rewrote and refactored creation of dummy window and OpenGL context on
Windows to be encapsulated in WindowsDummyGLDrawable class. This is a prerequisite for implementing top-level pbuffer support in the GLDrawableFactory (i.e., not associated with a GLCanvas). Refactored context implementations further on all platforms. git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/branches/JSR-231@325 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src/net/java/games/jogl/impl/windows/WindowsGLContext.java')
-rw-r--r--src/net/java/games/jogl/impl/windows/WindowsGLContext.java40
1 files changed, 31 insertions, 9 deletions
diff --git a/src/net/java/games/jogl/impl/windows/WindowsGLContext.java b/src/net/java/games/jogl/impl/windows/WindowsGLContext.java
index 44f2894eb..fccd0bf70 100644
--- a/src/net/java/games/jogl/impl/windows/WindowsGLContext.java
+++ b/src/net/java/games/jogl/impl/windows/WindowsGLContext.java
@@ -44,7 +44,7 @@ import net.java.games.gluegen.runtime.*; // for PROCADDRESS_VAR_PREFIX
import net.java.games.jogl.*;
import net.java.games.jogl.impl.*;
-public abstract class WindowsGLContext extends GLContextImpl {
+public class WindowsGLContext extends GLContextImpl {
protected WindowsGLDrawable drawable;
protected long hglrc;
private boolean wglGetExtensionsStringEXTInitialized;
@@ -95,14 +95,6 @@ public abstract class WindowsGLContext extends GLContextImpl {
return glExtensionName;
}
- public int getOffscreenContextPixelDataType() {
- throw new GLException("Should not call this");
- }
-
- public abstract int getOffscreenContextReadBuffer();
-
- public abstract boolean offscreenImageNeedsVerticalFlip();
-
/**
* Creates and initializes an appropriate OpenGL context. Should only be
* called by {@link #makeCurrentImpl()}.
@@ -259,6 +251,36 @@ public abstract class WindowsGLContext extends GLContextImpl {
return available;
}
+ public int getOffscreenContextPixelDataType() {
+ throw new GLException("Should not call this");
+ }
+
+ public int getOffscreenContextReadBuffer() {
+ throw new GLException("Should not call this");
+ }
+
+ public boolean offscreenImageNeedsVerticalFlip() {
+ throw new GLException("Should not call this");
+ }
+
+ public boolean canCreatePbufferContext() {
+ return false;
+ }
+
+ public GLDrawableImpl createPbufferDrawable(GLCapabilities capabilities,
+ int initialWidth,
+ int initialHeight) {
+ throw new GLException("Not supported");
+ }
+
+ public void bindPbufferToTexture() {
+ throw new GLException("Should not call this");
+ }
+
+ public void releasePbufferFromTexture() {
+ throw new GLException("Should not call this");
+ }
+
//----------------------------------------------------------------------
// Internals only below this point
//