Package k8

Examples of k8.SceneNode


     *
     * @param triangle
     *            Triangle to give Slices to
     */
    public void assign(Triangle triangle) {
        Slice slice;
        int elements = vertices.getElements();

        // Add the triangle to the list
        triangles.add(triangle);

View Full Code Here


     *
     * @param initialcapacity
     *          Initial capacity (number of vertices)
     */
    public static ColoursBuffer getInstance(int initialcapacity) {
        return ( GLContext.getCapabilities().GL_ARB_vertex_buffer_object ) ? new VBOColoursBuffer(initialcapacity) : new VARColoursBuffer(initialcapacity);
    }
View Full Code Here

     *
     * @param initialcapacity
     *          Initial capacity (number of indices)
     */
    public static IndicesBuffer getInstance(int initialcapacity) {
        return ( GLContext.getCapabilities().GL_ARB_vertex_buffer_object ) ? new VBOIndicesBuffer(initialcapacity) : new VARIndicesBuffer(initialcapacity);
    }
View Full Code Here

     *
     * @param initialcapacity
     *          Initial capacity (number of vertices)
     */
    public static TexCoordsBuffer getInstance(int initialcapacity) {
       return ( GLContext.getCapabilities().GL_ARB_vertex_buffer_object ) ? new VBOTexCoordsBuffer(initialcapacity) : new VARTexCoordsBuffer(initialcapacity);
    }
View Full Code Here

     *
     * @param initialcapacity
     *          Initial capacity (number of vertices)
     */
    public static VerticesBuffer getInstance(int initialcapacity) {
        return ( GLContext.getCapabilities().GL_ARB_vertex_buffer_object ) ? new VBOVerticesBuffer(initialcapacity) : new VARVerticesBuffer(initialcapacity);
    }
View Full Code Here

     *
     * @param initialcapacity
     *          Initial capacity (number of vertices)
     */
    public static ColoursBuffer getInstance(int initialcapacity) {
        return ( GLContext.getCapabilities().GL_ARB_vertex_buffer_object ) ? new VBOColoursBuffer(initialcapacity) : new VARColoursBuffer(initialcapacity);
    }
View Full Code Here

     *
     * @param initialcapacity
     *          Initial capacity (number of indices)
     */
    public static IndicesBuffer getInstance(int initialcapacity) {
        return ( GLContext.getCapabilities().GL_ARB_vertex_buffer_object ) ? new VBOIndicesBuffer(initialcapacity) : new VARIndicesBuffer(initialcapacity);
    }
View Full Code Here

     *
     * @param initialcapacity
     *          Initial capacity (number of vertices)
     */
    public static TexCoordsBuffer getInstance(int initialcapacity) {
       return ( GLContext.getCapabilities().GL_ARB_vertex_buffer_object ) ? new VBOTexCoordsBuffer(initialcapacity) : new VARTexCoordsBuffer(initialcapacity);
    }
View Full Code Here

     *
     * @param initialcapacity
     *          Initial capacity (number of vertices)
     */
    public static VerticesBuffer getInstance(int initialcapacity) {
        return ( GLContext.getCapabilities().GL_ARB_vertex_buffer_object ) ? new VBOVerticesBuffer(initialcapacity) : new VARVerticesBuffer(initialcapacity);
    }
View Full Code Here

      // Create two new triangles, set attributes and add

      // ._
      // | /
      // |/
      Triangle t = new Triangle();
      t.setTexture(font);
      t.setVertices(x, a, 0, x, d, 0, x + w, a, 0);
      t.setTexture(gm.u1, gm.v1, gm.u1, gm.v2, gm.u2, gm.v1);
      this.add(t);
      triangles.append(t);

      // ./|
      // /_|
      t = new Triangle();
      t.setTexture(font);
      t.setVertices(x, d, 0, x + w, d, 0, x + w, a, 0);
      t.setTexture(gm.u1, gm.v2, gm.u2, gm.v2, gm.u2, gm.v1);
      this.add(t);
      triangles.append(t);

      // Advance next position width of current character
      x += w;
View Full Code Here

TOP

Related Classes of k8.SceneNode

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.