Class VBOBuilder

    • Constructor Detail

      • VBOBuilder

        public VBOBuilder()
    • Method Detail

      • putBar

        protected void putBar​(FloatVBO vbo,
                              int size,
                              float x,
                              float y,
                              float z,
                              Color color)
      • putColor

        protected void putColor​(FloatVBO vbo,
                                Color color)
      • initFloatVBO

        protected FloatVBO initFloatVBO​(DrawableVBO drawable,
                                        boolean hasNormal,
                                        boolean hasColor,
                                        int n,
                                        int dimension)
        Setup buffers dimensions according to various parameters:
        • target drawable representation type (point, line, etc),
        • having color per vertex or not,
        • having normals defined (default to false)
        • number of dimensions (default to 3)
      • geometryTypeToMultiplier

        protected int geometryTypeToMultiplier​(int geometrySize)
      • initFloatVBO

        protected FloatVBO initFloatVBO​(DrawableVBO drawable,
                                        boolean hasNormal,
                                        boolean hasColor,
                                        int n)
        Setup buffers dimensions according to various parameters:
        • target drawable representation type (point, line, etc),
        • having color per vertex or not,
        • having normals defined (default to false)
        • 3 dimensions
      • initFloatVBO

        protected FloatVBO initFloatVBO​(DrawableVBO drawable,
                                        boolean hasColor,
                                        int n)
        Setup buffers dimensions according to various parameters:
        • target drawable representation type (point, line, etc),
        • having color per vertex or not,
        • no normals defined
        • 3 dimensions
      • computeVerticeBufferSize

        protected int computeVerticeBufferSize​(int type,
                                               int n,
                                               int dim,
                                               int geometrySize,
                                               boolean hasNormal,
                                               boolean hasColor)
      • computeGeometrySize

        protected int computeGeometrySize​(DrawableVBO drawable)