/** * Creates a cube primitive. * * @param size The size of the cube. * @param isSkybox A boolean that indicates whether this is a skybox or not. If set to true the normals will * be inverted. * @param hasCubemapTexture A boolean that indicates a cube map texture will be used (6 textures) or a regular * single texture. * @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 createVBOs A boolean that indicates whether the VBOs should be created immediately. */ public Cube(float size, boolean isSkybox, boolean hasCubemapTexture, boolean createTextureCoordinates, boolean createVertexColorBuffer, boolean createVBOs) { super(); mIsSkybox = isSkybox; mSize = size; mHasCubemapTexture = hasCubemapTexture; mCreateTextureCoords = createTextureCoordinates; mCreateVertexColorBuffer = createVertexColorBuffer; init(createVBOs); }
/** * Creates a cube primitive. * * @param size The size of the cube. * @param isSkybox A boolean that indicates whether this is a skybox or not. If set to true the normals will * be inverted. * @param hasCubemapTexture A boolean that indicates a cube map texture will be used (6 textures) or a regular * single texture. * @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 createVBOs A boolean that indicates whether the VBOs should be created immediately. */ public Cube(float size, boolean isSkybox, boolean hasCubemapTexture, boolean createTextureCoordinates, boolean createVertexColorBuffer, boolean createVBOs) { super(); mIsSkybox = isSkybox; mSize = size; mHasCubemapTexture = hasCubemapTexture; mCreateTextureCoords = createTextureCoordinates; mCreateVertexColorBuffer = createVertexColorBuffer; init(createVBOs); }