Companion

object Companion

Properties

Link copied to clipboard
const val ALLOW_LAST_PAGE_CURL: Boolean = true

Allows curl on last page

Link copied to clipboard

Duration of curl animation expressed in milliseconds.

Link copied to clipboard
const val CURL_LEFT: Int = 1

Flipping left page

Link copied to clipboard
const val CURL_NONE: Int = 0

Flipping no page.

Link copied to clipboard
const val CURL_RIGHT: Int = 2

Flipping right page.

Link copied to clipboard

Default color factor offset to make darker or clearer the area of the texture close to the curl. Value must be between 0.0f and 1.0f (both included). The larger the value, the clearer the area will be. The smaller the value, the darker the area will be.

Link copied to clipboard

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.

Link copied to clipboard

Flag for drawing polygon outlines. Seeing polygon outlines gives good insight on how original rectangle is divided.

Link copied to clipboard
const val DRAW_SHADOW_IN_MESH: Boolean = true

Flag for enabling shadow rendering.

Link copied to clipboard
const val DRAW_TEXTURE_IN_MESH: Boolean = true

Flag for texture rendering.

Link copied to clipboard

Number of splits to draw within meshes to generate curls

Link copied to clipboard

Duration of curl animation during page jump expressed in milliseconds.

Link copied to clipboard
const val SET_CURL_TO_LEFT: Int = 1

Sets animation target to left page.

Link copied to clipboard
const val SET_CURL_TO_RIGHT: Int = 2

Sets animation target to right page.

Link copied to clipboard

Inner color for shadow. Inner color is the color drawn next to surface where shadowed area starts.

Link copied to clipboard

Outer color for shadow. Outer color is the color the shadow ends to.

Link copied to clipboard
const val SHOW_ONE_PAGE: Int = 1

Shows one page at the center of view.

Link copied to clipboard
const val SHOW_TWO_PAGES: Int = 2

Shows two pages side by side.

Link copied to clipboard
const val TOUCH_PRESSURE_ENABLED: Boolean = false

Indicates whether touch pressure is taken into account to modify radius of curl.