The X Toolkit API

X.buffer

/**
* Create a GL buffer container. Besides the actual GL buffer, the container
* stores the number of items and the size of each item.
*
* @constructor
* @param {Object} glBuffer The GL buffer.
* @param {number} itemCount The number of items.
* @param {number} itemSize The size of each item.
* @extends X.base
*/
var b = new X.buffer();
/**
* The className of this class.
*
* @type {string}
* @protected
*/
b._classname = $_CLASSNAME;
/**
* The 'dirty' flag of this object.
*
* @type {boolean}
* @protected
*/
b._dirty = $_DIRTY;
/**
* The GL buffer.
*
* @type {Object}
* @const
*/
b._glBuffer = $_GLBUFFER;
/**
* The uniqueId of this instance. Each class instance in XTK has a uniqueId.
*
* @type {number}
* @protected
*/
b._id = $_ID;
/**
* The number of items.
*
* @type {number}
* @const
*/
b._itemCount = $_ITEMCOUNT;
/**
* The size of each item.
*
* @type {number}
* @const
*/
b._itemSize = $_ITEMSIZE;
/**
* Get the className of this object.
*
* @return {string} The className of this object.
* @public
*/
var _classname = b.classname;
/**
* Get the id of this instance.
*
* @return {string} The className of this object.
* @public
*/
var _id = b.id;


CONSTRUCTORS
X.buffer

PROPERTIES
_classname
_dirty
_glBuffer
_id
_itemCount
_itemSize

GETTERS/SETTERS
classname
id

FUNCTIONS

STATIC



SOURCECODE