1
0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-06-18 10:38:31 +02:00
VVVVVV/mobile_version/src/starling/utils/MeshSubset.as
Terry Cavanagh 72d018ea04 Update mobile version to mobile v2.2.1
The android version just got a much needed update to fix some resolution issues on devices with cutouts.

It turns out the mobile source was actually pretty out of date, like 3 versions out of date! This commit brings it up to date.

All the changes have just been about keeping the game running on modern devices, though. The biggest change was adding the Starling library to the project, which made the game GPU powered and sped the whole thing up.
2022-12-02 18:19:58 +01:00

47 lines
1.6 KiB
ActionScript

// =================================================================================================
//
// Starling Framework
// Copyright Gamua GmbH. All Rights Reserved.
//
// This program is free software. You can redistribute and/or modify it
// in accordance with the terms of the accompanying license agreement.
//
// =================================================================================================
package starling.utils
{
/** A class describing a range of vertices and indices, thus referencing a subset of a Mesh. */
public class MeshSubset
{
/** The ID of the first vertex. */
public var vertexID:int;
/** The total number of vertices. */
public var numVertices:int;
/** The ID of the first index. */
public var indexID:int;
/** The total number of indices. */
public var numIndices:int;
/** Creates a new MeshSubset. */
public function MeshSubset(vertexID:int=0, numVertices:int=-1,
indexID:int=0, numIndices:int=-1)
{
setTo(vertexID, numVertices, indexID, numIndices);
}
/** Changes all properties at once.
* Call without any arguments to reference a complete mesh. */
public function setTo(vertexID:int=0, numVertices:int=-1,
indexID:int=0, numIndices:int=-1):void
{
this.vertexID = vertexID;
this.numVertices = numVertices;
this.indexID = indexID;
this.numIndices = numIndices;
}
}
}