Class GLScalableRect

  • All Implemented Interfaces:
    Scalable, java.lang.AutoCloseable
    Direct Known Subclasses:
    GLScalableRectTexture

    public abstract class GLScalableRect
    extends java.lang.Object
    implements Scalable, java.lang.AutoCloseable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected float[] mDrawMatrix  
    • Constructor Summary

      Constructors 
      Constructor Description
      GLScalableRect()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected float[] getModelViewMatrix()  
      void setOffset​(float offsetX, float offsetY)  
      void setPosition​(float posX, float posY)  
      void setRotation​(float angle)  
      void setScale​(float scaleX, float scaleY)  
      abstract void setScreenSize​(int width, int height)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.lang.AutoCloseable

        close
    • Field Detail

      • mDrawMatrix

        protected float[] mDrawMatrix
    • Constructor Detail

      • GLScalableRect

        public GLScalableRect()
    • Method Detail

      • setScale

        public void setScale​(float scaleX,
                             float scaleY)
        Specified by:
        setScale in interface Scalable
      • setPosition

        public void setPosition​(float posX,
                                float posY)
        Specified by:
        setPosition in interface Scalable
      • setOffset

        public void setOffset​(float offsetX,
                              float offsetY)
        Specified by:
        setOffset in interface Scalable
      • setRotation

        public void setRotation​(float angle)
        Specified by:
        setRotation in interface Scalable
      • setScreenSize

        public abstract void setScreenSize​(int width,
                                           int height)
      • getModelViewMatrix

        protected float[] getModelViewMatrix()