Lines Matching refs:textureWidth
153 image->data[x + y * image->textureWidth] = color; in loadPNGImage()
258 image->textureWidth = getNextPower2(width); in createImage()
260 image->data = (Color*) memalign(16, image->textureWidth * image->textureHeight * sizeof(Color)); in createImage()
267 memset(image->data, 0, image->textureWidth * image->textureHeight * sizeof(Color)); in createImage()
282 int size = image->textureWidth * image->textureHeight; in clearImage()
289 image->data[x + y * image->textureWidth] = color; in putPixelToImage()
294 return image->data[x + y * image->textureWidth]; in getPixelFromImage()
299 drawLine(x0, y0, x1, y1, color, image->data, image->textureWidth); in drawLineInImage()
304 int skipX = image->textureWidth - width; in fillImageRect()
306 Color* data = image->data + x0 + y0 * image->textureWidth; in fillImageRect()
315 int skipX = image->textureWidth - width; in fillImageEllipse()
317 Color* data = image->data + x0 + y0 * image->textureWidth; in fillImageEllipse()
338 Color* destinationData = &destination->data[destination->textureWidth * dy + dx]; in copyImageToImage()
339 int destinationSkipX = destination->textureWidth - width; in copyImageToImage()
340 Color* sourceData = &source->data[source->textureWidth * sy + sx]; in copyImageToImage()
341 int sourceSkipX = source->textureWidth - width; in copyImageToImage()