# coneneko.vertexbuffer

class VertexBuffer: coneneko.unit.Unit;
  使ったらdelete
  this(float[] data);
  this(Vector[] data, ubyte vecN);
    dataをN次元ベクトルとして扱う、vecN, float = 1, vec2 = 2, vec3 = 3, vec4 = 4
class PositionBuffer: coneneko.vertexbuffer.VertexBuffer;
  this(float[] positions);
    float3
  this(Vector[] vec3Array);
class ColorBuffer: coneneko.vertexbuffer.VertexBuffer;
  this(float[] rgba);
    float4
  this(Vector[] vec4Array);
class NormalBuffer: coneneko.vertexbuffer.VertexBuffer;
  this(float[] normals);
    float3
  this(Vector[] vec3Array);
class TexCoordBuffer: coneneko.vertexbuffer.VertexBuffer;
  this(float[] texCoords);
    float2
  this(Vector[] vec2Array);
class AttributeBuffer: coneneko.vertexbuffer.VertexBuffer;
  this(float[] data, uint vecN, uint location = 0);
  this(Vector[] data, uint vecN, uint location = 0);
    vecN, float = 1, vec2 = 2, vec3 = 3, vec4 = 4
    location = shader.glGetAttribLocationARB
class PcntaBuffer: coneneko.unit.Unit;
  this(Pcnta pcnta, uint attributeLocation = 0);

Page generated by Ddoc.