org.rajawali3d.util

Package org.rajawali3d.util

Types

ArrayUtils

open class ArrayUtils
open class ArrayUtils

A collection of methods for working with primitive arrays.

Capabilities

open class Capabilities
open class Capabilities

Lists all OpenGL specific capabilities

GLU

open class GLU
open class GLU

NOTE: This class taken from Android Open Source Project source code and modified to support double precision matrices. A set of GL utilities inspired by the OpenGL Utility Toolkit.

Intersector

class Intersector
class Intersector

Class offering various static methods for intersection testing between different geometric objects. Originally written by Badlogic Games. Ported for Rajawali by Andrew Jo.

IObjectPicker

interface IObjectPicker
interface IObjectPicker

LittleEndianDataInputStream

open class LittleEndianDataInputStream : InputStream, DataInput
open class LittleEndianDataInputStream : InputStream, DataInput

Taken from http://www.peterfranza.com/2008/09/26/little-endian-input-stream/

LittleEndianOutputStream

open class LittleEndianOutputStream : FilterOutputStream
open class LittleEndianOutputStream : FilterOutputStream

Helper class for wrapping an OutputStream for little endian encoding. Taken from http://www.javafaq.nu/java-example-code-1078.html

ObjectColorPicker

open class ObjectColorPicker : IObjectPicker
open class ObjectColorPicker : IObjectPicker

OnFPSUpdateListener

interface OnFPSUpdateListener
interface OnFPSUpdateListener

OnObjectPickedListener

interface OnObjectPickedListener
interface OnObjectPickedListener

RajLog

class RajLog
class RajLog

RawShaderLoader

class RawShaderLoader
class RawShaderLoader

Internal class for managing shader loading. This class is mostly internal unfortunately loading of resources requires context so this class has help from AMaterial to statically pass the context and store it as a weak reference. Unfortunately there is no way around this that I can see but I am open for suggestions of a better solution.

RayPicker

open class RayPicker : IObjectPicker
open class RayPicker : IObjectPicker

ScreenGrab

open class ScreenGrab
open class ScreenGrab

Grabs the pixels from the buffer and saves it to a file on the SD card. Usage example (saves every frame to a separate .png file):


  public void onDrawFrame(GL10 glUnused) {
  		super.onDrawFrame(glUnused);
  		Screengrab.saveAsImage(0, 0, mDefaultViewportWidth, mDefaultViewportHeight, "/frame_" + mFrameCount + ".png", CompressFormat.PNG);
  }