/** * Creates a sphere primitive. * * @param radius * The radius of the sphere * @param segmentsW * The number of vertical segments * @param segmentsH * The number of horizontal segments * @param createTextureCoordinates * A boolean that indicates if the texture coordinates should be calculated or not. * @param createVertexColorBuffer * A boolean that indicates if a vertex color buffer should be created or not. * @param createVBOs * A boolean that indicates if the VBOs should be created immediately. * @param mirrorTextureCoords * A boolean that indicates if the texture coords should be mirrored horizontally. */ public Sphere(float radius, int segmentsW, int segmentsH, boolean createTextureCoordinates, boolean createVertexColorBuffer, boolean createVBOs, boolean mirrorTextureCoords) { super(); mRadius = radius; mSegmentsW = segmentsW; mSegmentsH = segmentsH; mCreateTextureCoords = createTextureCoordinates; mCreateVertexColorBuffer = createVertexColorBuffer; mMirrorTextureCoords = mirrorTextureCoords; init(createVBOs); }
/** * Creates a sphere primitive. * * @param radius * The radius of the sphere * @param segmentsW * The number of vertical segments * @param segmentsH * The number of horizontal segments * @param createTextureCoordinates * A boolean that indicates whether the texture coordinates should be calculated or not. * @param createVertexColorBuffer * A boolean that indicates whether a vertex color buffer should be created or not. * @param createVertexColorBuffer * A boolean that indicates whether the VBOs should be created immediately. */ public Sphere(float radius, int segmentsW, int segmentsH, boolean createTextureCoordinates, boolean createVertexColorBuffer, boolean createVBOs) { super(); mRadius = radius; mSegmentsW = segmentsW; mSegmentsH = segmentsH; mCreateTextureCoords = createTextureCoordinates; mCreateVertexColorBuffer = createVertexColorBuffer; init(createVBOs); }