public GeometryHandle CreateHandle()
        {
            GeometryHandle handle;

            handle = Buffering.BufferShaderGeometry(this);

            return(handle);
        }
Exemple #2
0
        public static GeometryHandle BufferShaderGeometry(PackedGeometry packSet)
        {
            GeometryHandle handle;

            handle = new GeometryHandle();

            if (packSet.interleaved3.Count > 0)
            {
                Buffering.BufferShaderGeometry(packSet.interleaved3, out handle.vbo3, out handle.NumVerticies3);
            }

            if (packSet.interleaved4.Count > 0)
            {
                Buffering.BufferShaderGeometry(packSet.interleaved4, out handle.vbo4, out handle.NumVerticies4);
            }

            return(handle);
        }