org.stellarium.ui.render
Class GlPng
java.lang.Object
org.stellarium.ui.render.GlPng
-
public class GlPng
- extends java.lang.Object
Constructor Summary |
GlPng()
|
Method Summary |
(package private) static void
|
Build2DMipmaps(int components,
int width, int height, int format, java.nio.ByteBuffer data, boolean filter)
|
(package private) static void
|
checkForGammaEnv()
|
(package private) static boolean
|
HalfSize(int components,
int width, int height, java.nio.ByteBuffer data, java.nio.ByteBuffer d,
boolean filter)
|
static int |
pngBind(java.lang.String filename,
int mipmap, int trans, GlPng.PngInfo info, int wrapst, int minfilter, int magfilter)
|
static int |
pngBindF(java.io.File file,
int mipmap, int trans, GlPng.PngInfo info, int wrapst, int minfilter, int magfilter)
|
static boolean |
pngLoad(java.lang.String filename,
int mipmap, int trans, GlPng.PngInfo info)
|
static boolean |
pngLoadF(java.io.File file,
int mipmap, int trans, GlPng.PngInfo info)
|
static void |
pngSetAlphaCallback(GlPng.AlphaCallback callback)
|
static void |
pngSetStandardOrientation(int standardorientation)
|
static void |
pngSetStencil(byte red,
byte green, byte blue)
|
static void |
pngSetViewingGamma(double viewingGamma)
|
(package private) static void
|
Resize(int components,
java.nio.ByteBuffer d1, int w1, int h1, java.nio.ByteBuffer d2, int w2,
int h2)
|
(package private) static int
|
SafeSize(int i)
|
private static int |
setParams(int wrapst,
int magfilter, int minfilter)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PNG_NOMIPMAPS
public static final int PNG_NOMIPMAPS
- See Also:
- Constant Field
Values
PNG_BUILDMIPMAPS
public static final int PNG_BUILDMIPMAPS
- See Also:
- Constant Field
Values
PNG_SIMPLEMIPMAPS
public static final int PNG_SIMPLEMIPMAPS
- See Also:
- Constant Field
Values
PNG_NOMIPMAP
public static final int PNG_NOMIPMAP
- See Also:
- Constant Field Values
PNG_BUILDMIPMAP
public static final int PNG_BUILDMIPMAP
- See Also:
- Constant Field
Values
PNG_SIMPLEMIPMAP
public static final int PNG_SIMPLEMIPMAP
- See Also:
- Constant Field
Values
PNG_CALLBACK
public static final int PNG_CALLBACK
- See Also:
- Constant Field Values
PNG_ALPHA
public static final int PNG_ALPHA
- See Also:
- Constant Field Values
PNG_SOLID
public static final int PNG_SOLID
- See Also:
- Constant Field Values
PNG_STENCIL
public static final int PNG_STENCIL
- See Also:
- Constant Field Values
PNG_BLEND1
public static final int PNG_BLEND1
- See Also:
- Constant Field Values
PNG_BLEND2
public static final int PNG_BLEND2
- See Also:
- Constant Field Values
PNG_BLEND3
public static final int PNG_BLEND3
- See Also:
- Constant Field Values
PNG_BLEND4
public static final int PNG_BLEND4
- See Also:
- Constant Field Values
PNG_BLEND5
public static final int PNG_BLEND5
- See Also:
- Constant Field Values
PNG_BLEND6
public static final int PNG_BLEND6
- See Also:
- Constant Field Values
PNG_BLEND7
public static final int PNG_BLEND7
- See Also:
- Constant Field Values
PNG_BLEND8
public static final int PNG_BLEND8
- See Also:
- Constant Field Values
defaultAlphaCallback
public static GlPng.AlphaCallback defaultAlphaCallback
StencilRed
static byte StencilRed
StencilGreen
static byte StencilGreen
StencilBlue
static byte StencilBlue
StandardOrientation
static int StandardOrientation
PalettedTextures
static int PalettedTextures
MaxTextureSize
static int MaxTextureSize
screenGamma
static double screenGamma
- screenGamma = displayGamma/viewingGamma displayGamma = CRT has gamma of ~2.2 viewingGamma depends on platform. PC
is 1.0, Mac is 1.45, SGI defaults to 1.7, but this can be checked and changed w/ /usr/sbin/gamma command. If the
environment variable VIEWING_GAMMA is set, adjust gamma per this value.
gammaExplicit
static boolean gammaExplicit
GlPng
public GlPng()
checkForGammaEnv
static void checkForGammaEnv()
-
SafeSize
static int SafeSize(int i)
-
Resize
static void Resize(int components,
java.nio.ByteBuffer d1,
int w1,
int h1,
java.nio.ByteBuffer d2,
int w2,
int h2)
-
HalfSize
static boolean HalfSize(int components,
int width,
int height,
java.nio.ByteBuffer data,
java.nio.ByteBuffer d,
boolean filter)
-
Build2DMipmaps
static void Build2DMipmaps(int components,
int width,
int height,
int format,
java.nio.ByteBuffer data,
boolean filter)
-
pngLoad
public static boolean pngLoad(java.lang.String filename,
int mipmap,
int trans,
GlPng.PngInfo info)
-
pngLoadF
public static boolean pngLoadF(java.io.File file,
int mipmap,
int trans,
GlPng.PngInfo info)
-
setParams
private static int setParams(int wrapst,
int magfilter,
int minfilter)
-
pngBind
public static int pngBind(java.lang.String filename,
int mipmap,
int trans,
GlPng.PngInfo info,
int wrapst,
int minfilter,
int magfilter)
-
pngBindF
public static int pngBindF(java.io.File file,
int mipmap,
int trans,
GlPng.PngInfo info,
int wrapst,
int minfilter,
int magfilter)
-
pngSetStencil
public static void pngSetStencil(byte red,
byte green,
byte blue)
-
pngSetAlphaCallback
public static void pngSetAlphaCallback(GlPng.AlphaCallback callback)
-
pngSetViewingGamma
public static void pngSetViewingGamma(double viewingGamma)
-
pngSetStandardOrientation
public static void pngSetStandardOrientation(int standardorientation)
-