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/DistortedOutputSurface.java
84 84

  
85 85
///////////////////////////////////////////////////////////////////////////////////////////////////
86 86

  
87
  DistortedOutputSurface(int width, int height, int createColor, int depthStencil, int fbo, int type)
87
  DistortedOutputSurface(int width, int height, int createColor, int numcolors, int depthStencil, int fbo, int type)
88 88
    {
89
    super(width,height,createColor,type);
89
    super(width,height,createColor,numcolors,type);
90 90

  
91 91
    mProjectionMatrix = new float[16];
92 92

  
......
191 191

  
192 192
          for(int j=0; j<EffectQuality.LENGTH; j++)
193 193
            {
194
            mBuffer1[j] = new DistortedFramebuffer(BOTH_DEPTH_STENCIL,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
195
            mBuffer2[j] = new DistortedFramebuffer(BOTH_DEPTH_STENCIL,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
194
            mBuffer1[j] = new DistortedFramebuffer(1,BOTH_DEPTH_STENCIL,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
195
            mBuffer2[j] = new DistortedFramebuffer(1,BOTH_DEPTH_STENCIL,TYPE_SYST, (int)(mWidth*mipmap), (int)(mHeight*mipmap) );
196 196
            mBuffer1[j].mMipmap = mipmap;
197 197
            mBuffer2[j].mMipmap = mipmap;
198 198
            mipmap *= EffectQuality.MULTIPLIER;

Also available in: Unified diff