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/InternalSurface.java
29 29
  int mNumColors;
30 30
  int mNumFBOs;
31 31
  int[] mColorH;
32
  int mWidth, mHeight;
33 32

  
34 33
///////////////////////////////////////////////////////////////////////////////////////////////////
35 34

  
36
  InternalSurface(int width, int height, int create, int numfbos, int numcolors, int type)
35
  InternalSurface(int create, int numfbos, int numcolors, int type)
37 36
    {
38 37
    super(type);
39 38

  
40 39
    mNumFBOs      = numfbos;
41 40
    mNumColors    = numcolors;
42
    mWidth        = width ;
43
    mHeight       = height;
44 41
    mColorCreated = create;
45 42

  
46 43
    int total = mNumFBOs*mNumColors;
......
57 54

  
58 55
  String printDetails()
59 56
    {
60
    return getClass().getSimpleName()+" "+mWidth+"x"+mHeight;
57
    return getClass().getSimpleName();
61 58
    }
62 59

  
63 60
///////////////////////////////////////////////////////////////////////////////////////////////////
64 61
// PUBLIC API
65
///////////////////////////////////////////////////////////////////////////////////////////////////
66
/**
67
 * Return the width of this Surface.
68
 *
69
 * @return width of the Object, in pixels.
70
 */
71
  public int getWidth()
72
    {
73
    return mWidth;
74
    }
75

  
76
///////////////////////////////////////////////////////////////////////////////////////////////////
77
/**
78
 * Return the height of this Surface.
79
 *
80
 * @return height of the Object, in pixels.
81
 */
82
  public int getHeight()
83
    {
84
    return mHeight;
85
    }
86

  
87 62
///////////////////////////////////////////////////////////////////////////////////////////////////
88 63
/**
89 64
 * Bind the underlying rectangle of pixels as a OpenGL Texture.

Also available in: Unified diff