Project

General

Profile

« Previous | Next » 

Revision b9798977

Added by Leszek Koltunski about 7 years ago

Advances in Multiblur - breaks BLUR for now.

View differences:

src/main/java/org/distorted/library/DistortedScreen.java
27 27
 */
28 28
public class DistortedScreen extends DistortedOutputSurface
29 29
  {
30
  DistortedFramebuffer mBuffer = null;
31

  
30 32
///////////////////////////////////////////////////////////////////////////////////////////////////
31 33
// here we don't manage underlying OpenGL assets ourselves
32 34

  
......
34 36
  void delete()   {}
35 37
  void recreate() {}
36 38

  
39
///////////////////////////////////////////////////////////////////////////////////////////////////
40

  
41
  DistortedFramebuffer getBuffer()
42
    {
43
    if( mBuffer==null )
44
      {
45
      mBuffer = new DistortedFramebuffer(true,DistortedSurface.TYPE_SYST,mWidth,mHeight);
46
      }
47

  
48
    if( mBuffer.mWidth != mWidth || mBuffer.mHeight != mHeight )
49
      {
50
      mBuffer.resizeFast(mWidth,mHeight);
51
      }
52

  
53
    return mBuffer;
54
    }
55

  
37 56
///////////////////////////////////////////////////////////////////////////////////////////////////
38 57
// PUBLIC API
39 58
///////////////////////////////////////////////////////////////////////////////////////////////////

Also available in: Unified diff