diff options
author | Kenneth Russel <[email protected]> | 2005-11-14 20:32:17 +0000 |
---|---|---|
committer | Kenneth Russel <[email protected]> | 2005-11-14 20:32:17 +0000 |
commit | b91a42fd8d1dbde58280f72866e9f5cd119a48d5 (patch) | |
tree | 11d7e0028d85b0babd788dc6cc0aefcb249af053 /src | |
parent | d903df82c0b867ccabc6e73ccbf72ca7fd468e9e (diff) |
Cleaned up access control on a few helper methods
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/svn-server-sync/jogl/trunk@447 232f8b59-042b-4e1e-8c03-345bb8c30851
Diffstat (limited to 'src')
-rw-r--r-- | src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java b/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java index e0edfdc38..1b870d391 100644 --- a/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java +++ b/src/classes/com/sun/opengl/impl/windows/WindowsGLDrawable.java @@ -81,7 +81,7 @@ public abstract class WindowsGLDrawable extends GLDrawableImpl { return hdc; } - public void choosePixelFormat(boolean onscreen) { + protected void choosePixelFormat(boolean onscreen) { PIXELFORMATDESCRIPTOR pfd = null; int pixelFormat = 0; if (onscreen) { @@ -337,7 +337,7 @@ public abstract class WindowsGLDrawable extends GLDrawableImpl { pixelFormatChosen = true; } - static PIXELFORMATDESCRIPTOR glCapabilities2PFD(GLCapabilities caps, boolean onscreen) { + protected static PIXELFORMATDESCRIPTOR glCapabilities2PFD(GLCapabilities caps, boolean onscreen) { int colorDepth = (caps.getRedBits() + caps.getGreenBits() + caps.getBlueBits()); @@ -376,14 +376,14 @@ public abstract class WindowsGLDrawable extends GLDrawableImpl { return pfd; } - static PIXELFORMATDESCRIPTOR newPixelFormatDescriptor() { + protected static PIXELFORMATDESCRIPTOR newPixelFormatDescriptor() { PIXELFORMATDESCRIPTOR pfd = PIXELFORMATDESCRIPTOR.create(); pfd.nSize((short) pfd.size()); pfd.nVersion((short) 1); return pfd; } - static GLCapabilities pfd2GLCapabilities(PIXELFORMATDESCRIPTOR pfd) { + protected static GLCapabilities pfd2GLCapabilities(PIXELFORMATDESCRIPTOR pfd) { if ((pfd.dwFlags() & WGL.PFD_SUPPORT_OPENGL) == 0) { return null; } @@ -405,10 +405,10 @@ public abstract class WindowsGLDrawable extends GLDrawableImpl { return res; } - static GLCapabilities iattributes2GLCapabilities(int[] iattribs, - int[] iresults, - int niattribs, - boolean requireRenderToWindow) { + protected static GLCapabilities iattributes2GLCapabilities(int[] iattribs, + int[] iresults, + int niattribs, + boolean requireRenderToWindow) { GLCapabilities res = new GLCapabilities(); for (int i = 0; i < niattribs; i++) { switch (iattribs[i]) { |