Class gl_blend_pixel

java.lang.Object
jgl.context.render.pixel.gl_render_pixel
jgl.context.render.pixel.gl_blend_pixel

public class gl_blend_pixel extends gl_render_pixel
gl_blend_pixel is the pixel blending class of jGL 2.4. It overrides gl_render_pixel to have all gl_render_pixel.put_pixel(int, int, int) methods apply blending first.
Version:
0.1, 20 Nov. 2006
Author:
Robin Bing-Yu Chen
  • Constructor Details

    • gl_blend_pixel

      public gl_blend_pixel(gl_context cc)
  • Method Details

    • put_pixel_by_index

      public void put_pixel_by_index(int index, int color)
      Blend the pixel in the Color Buffer with the input color
      Overrides:
      put_pixel_by_index in class gl_render_pixel
    • put_pixel

      public void put_pixel(int x, int y, int color)
      Put a pixel in the Color Buffer
      Overrides:
      put_pixel in class gl_render_pixel
    • put_pixel_by_index

      public void put_pixel_by_index(int index, float z, int color)
      Put a pixel in the Color Buffer, if the pixel is near View Point
      Overrides:
      put_pixel_by_index in class gl_render_pixel
    • put_pixel

      public void put_pixel(int x, int y, float z, int color)
      Put a pixel in the Color Buffer, if the pixel is near View Point
      Overrides:
      put_pixel in class gl_render_pixel