Project

General

Profile

« Previous | Next » 

Revision d58b50e7

Added by Leszek Koltunski about 4 years ago

Remove width & height from InternalSurface and move it to InternalOutputSurface.

View differences:

src/main/java/org/distorted/library/main/InternalOutputSurface.java
45 45
  int mRealWidth;   // the Surface can be backed up by a texture larger than the viewport we have to it.
46 46
  int mRealHeight;  // mWidth,mHeight are the sizes of the Viewport, those - sizes of the backing up texture.
47 47
  int mCurrFBO;     // internal current FBO (see DistortedLibrary.FBO_QUEUE_SIZE)
48
  int mWidth, mHeight;
48 49

  
49 50
  private static DistortedFramebuffer[] mBuffer=null; // Global buffers used for postprocessing.
50 51
  private long[] mTime;
......
57 58

  
58 59
  InternalOutputSurface(int width, int height, int createColor, int numfbos, int numcolors, int depthStencil, int fbo, int type)
59 60
    {
60
    super(width,height,createColor,numfbos,numcolors,type);
61
    super(createColor,numfbos,numcolors,type);
61 62

  
62 63
    mRenderWayOIT = false;
63 64
    mCurrFBO      = 0;
......
68 69
    mTime = new long[numfbos];
69 70
    for(int i=0; i<mNumFBOs;i++) mTime[i]=0;
70 71

  
71
    mRealWidth = width;
72
    mRealHeight= height;
72
    mRealWidth = mWidth = width;
73
    mRealHeight= mHeight= height;
73 74

  
74 75
    mProjectionMatrix = new float[16];
75 76

  
......
936 937
    {
937 938
    mChildren.detachAll();
938 939
    }
940

  
941
///////////////////////////////////////////////////////////////////////////////////////////////////
942
/**
943
 * Return the width of this Surface.
944
 *
945
 * @return width of the Object, in pixels.
946
 */
947
  public int getWidth()
948
    {
949
    return mWidth;
950
    }
951

  
952
///////////////////////////////////////////////////////////////////////////////////////////////////
953
/**
954
 * Return the height of this Surface.
955
 *
956
 * @return height of the Object, in pixels.
957
 */
958
  public int getHeight()
959
    {
960
    return mHeight;
961
    }
939 962
}

Also available in: Unified diff