public Cube(float size, boolean isSkybox) { super(); mIsSkybox = isSkybox; mSize = size; mHasCubemapTexture = true; init(); }
/** * 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. */ public Cube( float size, boolean isSkybox, boolean hasCubemapTexture, boolean createTextureCoordinates, boolean createVertexColorBuffer) { super(); mIsSkybox = isSkybox; mSize = size; mHasCubemapTexture = hasCubemapTexture; mCreateTextureCoords = createTextureCoordinates; mCreateVertexColorBuffer = createVertexColorBuffer; init(); }
public Cube(float size) { super(); mSize = size; mHasCubemapTexture = false; init(); }