Curl Mesh
Class implementing actual curl page rendering. This class is based on https://github.com/harism/android-pagecurl
Constructors
Constructor for mesh object.
Properties
Flag for rendering some lines used for development. Shows curl position and one for the direction from the given position. Comes handy one playing around with different ways for following pointer.
Flag for drawing polygon outlines. Seeing polygon outlines gives good insight on how original rectangle is divided.
Flag for enabling shadow rendering.
Flag for texture rendering.
Inner color for shadow. Inner color is the color drawn next to surface where shadowed area starts.
Outer color for shadow. Outer color is the color the shadow ends to.
Contains texture and blend colors for a page.
Functions
Renders out page curl mesh
Resets mesh to 'initial' state. Meaning this mesh will draw a plain textured rectangle after call to this method.
Resets allocated texture id forcing creation of new one. After calling this method you most likely want to set bitmap too as it's lost. This method should be called only once e.g GL context is re-created as this method does not release previous texture id, only makes sure new one is requested on next render.
If true, flips texture sideways.