Home
last modified time | relevance | path

Searched refs:tileWidth (Results 1 – 20 of 20) sorted by relevance

/external/replicaisland/src/com/replica/replicaisland/
DTiledVertexGrid.java40 public TiledVertexGrid(Texture texture, int width, int height, int tileWidth, int tileHeight) { in TiledVertexGrid() argument
42 mTileWidth = tileWidth; in TiledVertexGrid()
60 final int tileWidth = mTileWidth; in generateGrid() local
62 final int tilesAcross = width / tileWidth; in generateGrid()
67 final int textureTilesAcross = texture.width / tileWidth; in generateGrid()
89 final float offsetX = tileX * tileWidth; in generateGrid()
96 int textureOffsetX = (tileIndex % textureTilesAcross) * tileWidth; in generateGrid()
99 textureOffsetX > texture.width - tileWidth || in generateGrid()
107 final float u2 = ((textureOffsetX + tileWidth - GL_MAGIC_OFFSET) * texelWidth); in generateGrid()
111 final float[] p1 = { offsetX + tileWidth, offsetY, 0.0f }; in generateGrid()
[all …]
DHotSpotSystem.java146 final float tileWidth = level.getLevelWidth() / mWorld.getWidth(); in getTileCenterWorldPositionX() local
147 worldX = (tileX * tileWidth) + (tileWidth / 2.0f); in getTileCenterWorldPositionX()
DLevelBuilder.java120 int width, int height, int tileWidth, int tileHeight, TiledWorld world, in addTileMapLayer() argument
157 width, height, tileWidth, tileHeight); in addTileMapLayer()
DCollisionSystem.java86 public void initialize(TiledWorld world, int tileWidth, int tileHeight) { in initialize() argument
89 mTileWidth = tileWidth; in initialize()
631 public void setup(Vector2 movementDirection, int tileWidth, int tileHeight) { in setup() argument
638 mTileWidth = tileWidth; in setup()
DGameObjectFactory.java574 public void spawnFromWorld(TiledWorld world, int tileWidth, int tileHeight) {
585 final float worldX = x * tileWidth;
594 if (object.width < tileWidth) {
595 object.getPosition().x += (tileWidth - object.width) / 2.0f;
596 } else if (object.width > tileWidth) {
597 object.getPosition().x -= (object.width - tileWidth) / 2.0f;
/external/v8/test/mjsunit/regress/
Dregress-201590.js40 tileWidth = 128 * 0.25 * this.scale,
44 ((y * tileWidth ) * gdpRatio) + ((x * tileWidth ) * gdpRatio);
47 xPos = xPos - Math.round(((tileWidth) * gdpRatio)) +
48 this.mapHeight * Math.round(((tileWidth) * gdpRatio));
/external/libgdx/gdx/src/com/badlogic/gdx/maps/tiled/
DTiledMapTileLayer.java27 private float tileWidth; field in TiledMapTileLayer
44 return tileWidth; in getTileWidth()
58 public TiledMapTileLayer (int width, int height, int tileWidth, int tileHeight) { in TiledMapTileLayer() argument
62 this.tileWidth = tileWidth; in TiledMapTileLayer()
DAtlasTmxMapLoader.java236 int tileWidth = root.getIntAttribute("tilewidth", 0); in loadMap() local
246 mapProperties.put("tilewidth", tileWidth); in loadMap()
252 mapTileWidth = tileWidth; in loadMap()
254 mapWidthInPixels = mapWidth * tileWidth; in loadMap()
260 mapWidthInPixels += tileWidth / 2; in loadMap()
DTmxMapLoader.java161 int tileWidth = root.getIntAttribute("tilewidth", 0); in loadTilemap() local
174 mapProperties.put("tilewidth", tileWidth); in loadTilemap()
186 mapTileWidth = tileWidth; in loadTilemap()
188 mapWidthInPixels = mapWidth * tileWidth; in loadTilemap()
194 mapWidthInPixels += tileWidth / 2; in loadTilemap()
DBaseTmxMapLoader.java77 int tileWidth = element.getParent().getIntAttribute("tilewidth", 0); in loadTileLayer() local
79 TiledMapTileLayer layer = new TiledMapTileLayer(width, height, tileWidth, tileHeight); in loadTileLayer()
/external/dng_sdk/source/
Ddng_tile_iterator.cpp126 int32 tileWidth = tile.r - hOffset; in Initialize() local
129 fTileWidth = tileWidth; in Initialize()
131 fLeftPage = (fArea.l - hOffset ) / tileWidth; in Initialize()
132 fRightPage = (fArea.r - hOffset - 1) / tileWidth; in Initialize()
141 fTileLeft = fHorizontalPage * tileWidth + hOffset; in Initialize()
/external/libgdx/gdx/src/com/badlogic/gdx/graphics/g2d/
DTextureRegion.java254 public TextureRegion[][] split (int tileWidth, int tileHeight) { in split() argument
261 int cols = width / tileWidth; in split()
267 for (int col = 0; col < cols; col++, x += tileWidth) { in split()
268 tiles[row][col] = new TextureRegion(texture, x, y, tileWidth, tileHeight); in split()
283 public static TextureRegion[][] split (Texture texture, int tileWidth, int tileHeight) { in split() argument
285 return region.split(tileWidth, tileHeight); in split()
/external/libgdx/extensions/gdx-tools/src/com/badlogic/gdx/tiledmappacker/
DTileSetLayout.java45 int tileWidth = tileset.getProperties().get("tilewidth", Integer.class); in TileSetLayout() local
61 int stopWidth = image.getWidth() - tileWidth; in TileSetLayout()
65 for (x = margin; x <= stopWidth; x += tileWidth + spacing) { in TileSetLayout()
DTiledMapPacker.java311 int tileWidth = set.getProperties().get("tilewidth", Integer.class); in packTilesets() local
329 tile = new BufferedImage(tileWidth, tileHeight, BufferedImage.TYPE_4BYTE_ABGR); in packTilesets()
332 …g.drawImage(layout.image, 0, 0, tileWidth, tileHeight, (int)tileLocation.x, (int)tileLocation.y, (… in packTilesets()
333 + tileWidth, (int)tileLocation.y + tileHeight, null); in packTilesets()
336 System.out.println("Adding " + tileWidth + "x" + tileHeight + " (" + (int)tileLocation.x + ", " in packTilesets()
/external/libgdx/gdx/src/com/badlogic/gdx/maps/tiled/renderers/
DIsometricTiledMapRenderer.java89 float tileWidth = layer.getTileWidth() * unitScale; in renderTileLayer() local
91 float halfTileWidth = tileWidth * 0.5f; in renderTileLayer()
105 int row1 = (int)(translateScreenToIso(topLeft).y / tileWidth) - 2; in renderTileLayer()
106 int row2 = (int)(translateScreenToIso(bottomRight).y / tileWidth) + 2; in renderTileLayer()
108 int col1 = (int)(translateScreenToIso(bottomLeft).x / tileWidth) - 2; in renderTileLayer()
109 int col2 = (int)(translateScreenToIso(topRight).x / tileWidth) + 2; in renderTileLayer()
/external/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_mipmap_tree.c88 unsigned tileWidth, tileHeight; in get_texture_image_size() local
90 get_tile_size(format, &tileWidth, &tileHeight); in get_texture_image_size()
109 unsigned tileWidth, tileHeight; in get_texture_image_row_stride() local
110 get_tile_size(format, &tileWidth, &tileHeight); in get_texture_image_row_stride()
111 row_align = tileWidth * _mesa_get_format_bytes(format) - 1; in get_texture_image_row_stride()
/external/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_mipmap_tree.c88 unsigned tileWidth, tileHeight; in get_texture_image_size() local
90 get_tile_size(format, &tileWidth, &tileHeight); in get_texture_image_size()
109 unsigned tileWidth, tileHeight; in get_texture_image_row_stride() local
110 get_tile_size(format, &tileWidth, &tileHeight); in get_texture_image_row_stride()
111 row_align = tileWidth * _mesa_get_format_bytes(format) - 1; in get_texture_image_row_stride()
/external/skia/src/effects/
DSkPerlinNoiseShader.cpp206 SkScalar tileWidth = SkIntToScalar(fTileSize.width()); in stitch() local
208 SkASSERT(tileWidth > 0 && tileHeight > 0); in stitch()
213 SkScalarFloorToScalar(tileWidth * fBaseFrequency.fX) / tileWidth; in stitch()
215 SkScalarCeilToScalar(tileWidth * fBaseFrequency.fX) / tileWidth; in stitch()
236 SkScalarRoundToInt(tileWidth * fBaseFrequency.fX); in stitch()
/external/skia/experimental/SkPerlinNoiseShader2/
DSkPerlinNoiseShader2.cpp262 SkScalar tileWidth = SkIntToScalar(fTileSize.width()); in stitch() local
264 SkASSERT(tileWidth > 0 && tileHeight > 0); in stitch()
269 SkScalarFloorToScalar(tileWidth * fBaseFrequency.fX) / tileWidth; in stitch()
271 SkScalarCeilToScalar(tileWidth * fBaseFrequency.fX) / tileWidth; in stitch()
292 SkScalarRoundToInt(tileWidth * fBaseFrequency.fX); in stitch()
/external/mesa3d/src/mesa/drivers/common/
Dmeta.c2230 const GLint tileWidth = MIN2(tileSize, width - i); in tiled_draw_pixels() local
2241 _mesa_meta_DrawPixels(ctx, tileX, tileY, tileWidth, tileHeight, in tiled_draw_pixels()