Project

General

Profile

« Previous | Next » 

Revision 9ed80185

Added by Leszek Koltunski almost 7 years ago

Beginnings of support for multi-COLOR attachment Framebuffers.
This will be used in OutputSurface's Postprocessing Buffer.

View differences:

src/main/java/org/distorted/library/DistortedSurface.java
24 24
abstract class DistortedSurface extends DistortedObject
25 25
{
26 26
  int mColorCreated;
27
  int[] mColorH = new int[1];
27
  int mNumColors;
28
  int[] mColorH;
28 29
  int mWidth, mHeight;
29 30

  
30 31
///////////////////////////////////////////////////////////////////////////////////////////////////
31 32

  
32
  DistortedSurface(int width, int height, int create, int type)
33
  DistortedSurface(int width, int height, int create, int numcolors, int type)
33 34
    {
34 35
    super(create,type);
35 36

  
37
    mNumColors    = numcolors;
36 38
    mWidth        = width ;
37 39
    mHeight       = height;
38 40
    mColorCreated = create;
39
    mColorH[0]    = 0;
41

  
42
    if( mNumColors>0 )
43
      {
44
      mColorH = new int[mNumColors];
45
      for( int i=0; i<mNumColors; i++ )  mColorH[i] = 0;
46
      }
40 47
    }
41 48

  
42 49
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff