/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/angle/src/tests/gl_tests/ |
H A D | MaxTextureSizeTest.cpp | 94 GLsizei textureWidth = mMaxTexture2DSize; in TEST_P() local 97 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P() 100 for (int x = 0; x < textureWidth; x++) in TEST_P() 102 GLubyte *pixel = &data[0] + ((y * textureWidth + x) * 4); in TEST_P() 105 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); in TEST_P() 156 GLsizei textureWidth = 64; in TEST_P() local 159 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P() 162 for (int x = 0; x < textureWidth; x++) in TEST_P() 164 GLubyte *pixel = &data[0] + ((y * textureWidth + x) * 4); in TEST_P() 167 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); in TEST_P() [all …]
|
/dports/devel/bullet/bullet3-3.21/examples/OpenGLWindow/ |
H A D | opengl_fontstashcallbacks.cpp | 110 if (textureWidth && textureHeight) in updateTexture() 120 texture->m_texels = (unsigned char*)malloc(textureWidth * textureHeight); in updateTexture() 121 memset(texture->m_texels, 0, textureWidth * textureHeight); in updateTexture() 216 unsigned char* pixels = (unsigned char*)malloc(textureWidth * textureHeight); in dumpTextureToPng() 219 unsigned char* tmp = (unsigned char*)malloc(textureWidth); in dumpTextureToPng() 222 pixels[j * textureWidth + j] = 255; in dumpTextureToPng() 228 for (int i = 0; i < textureWidth; i++) in dumpTextureToPng() 230 tmp[i] = pixels[j * textureWidth + i]; in dumpTextureToPng() 231 pixels[j * textureWidth + i] = pixels[(textureHeight - j - 1) * textureWidth + i]; in dumpTextureToPng() 232 pixels[(textureHeight - j - 1) * textureWidth + i] = tmp[i]; in dumpTextureToPng() [all …]
|
/dports/devel/py-bullet3/bullet3-3.21/examples/OpenGLWindow/ |
H A D | opengl_fontstashcallbacks.cpp | 110 if (textureWidth && textureHeight) in updateTexture() 120 texture->m_texels = (unsigned char*)malloc(textureWidth * textureHeight); in updateTexture() 121 memset(texture->m_texels, 0, textureWidth * textureHeight); in updateTexture() 216 unsigned char* pixels = (unsigned char*)malloc(textureWidth * textureHeight); in dumpTextureToPng() 219 unsigned char* tmp = (unsigned char*)malloc(textureWidth); in dumpTextureToPng() 222 pixels[j * textureWidth + j] = 255; in dumpTextureToPng() 228 for (int i = 0; i < textureWidth; i++) in dumpTextureToPng() 230 tmp[i] = pixels[j * textureWidth + i]; in dumpTextureToPng() 231 pixels[j * textureWidth + i] = pixels[(textureHeight - j - 1) * textureWidth + i]; in dumpTextureToPng() 232 pixels[(textureHeight - j - 1) * textureWidth + i] = tmp[i]; in dumpTextureToPng() [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/gfx/angle/src/tests/gl_tests/ |
H A D | MaxTextureSizeTest.cpp | 108 GLsizei textureWidth = mMaxTexture2DSize; in TEST_P() local 111 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P() 114 for (int x = 0; x < textureWidth; x++) in TEST_P() 116 GLubyte* pixel = &data[0] + ((y * textureWidth + x) * 4); in TEST_P() 119 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); in TEST_P() 169 GLsizei textureWidth = 64; in TEST_P() local 172 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P() 175 for (int x = 0; x < textureWidth; x++) in TEST_P() 177 GLubyte* pixel = &data[0] + ((y * textureWidth + x) * 4); in TEST_P() 180 pixel[0] = static_cast<GLubyte>((float(x) / textureWidth) * 255); in TEST_P() [all …]
|
/dports/games/libretro-beetle_bsnes/beetle-bsnes-libretro-b65ded5bde278c18af538c687db9b72c995b220a/mednafen/snes/src/lib/ruby/video/ |
H A D | qtopengl.cpp | 15 unsigned textureWidth, textureHeight; member in ruby::pVideoQtOpenGL::RubyGLWidget 24 if(width > textureWidth || height > textureHeight) { in resize() 25 textureWidth = max(width, textureWidth); in resize() 33 buffer = new uint32_t[textureWidth * textureHeight]; in resize() 36 glPixelStorei(GL_UNPACK_ROW_LENGTH, textureWidth); in resize() 39 …glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, textureWidth, textureHeight, 0, GL_BGRA, GL_UNSIGNED_INT_8_… in resize() 68 double w = (double)rasterWidth / (double)textureWidth; in paintGL() 85 textureWidth = 0; in initializeGL() 140 pitch = widget->textureWidth * sizeof(uint32_t); in lock() 148 memset(widget->buffer, 0, widget->textureWidth * widget->textureHeight * sizeof(uint32_t)); in clear()
|
/dports/games/openbor3979/openbor-2bcf25b/engine/wii/ |
H A D | video.c | 190 textureWidth = videomodes.hRes; in video_set_mode() 198 scaledWidth = (int)(textureWidth * texscale); in video_set_mode() 437 for(x=0; x<textureWidth; x+=8) in copyscreen8() 440 memcpy(dest+8, data+textureWidth, 8); in copyscreen8() 465 for(x=0; x<textureWidth; x+=4) in copyscreen16() 468 memcpy(dest+4, data+textureWidth, 8); in copyscreen16() 469 memcpy(dest+8, data+mult2(textureWidth), 8); in copyscreen16() 503 for(x=0; x<textureWidth; x+=4) in copyscreen32() 506 memcpy32(dest+4, data+textureWidth); in copyscreen32() 507 memcpy32(dest+8, data+mult2(textureWidth)); in copyscreen32() [all …]
|
/dports/games/openbor3482/openbor-2c1ecd7/engine/wii/ |
H A D | video.c | 190 textureWidth = videomodes.hRes; in video_set_mode() 198 scaledWidth = (int)(textureWidth * texscale); in video_set_mode() 437 for(x=0; x<textureWidth; x+=8) in copyscreen8() 440 memcpy(dest+8, data+textureWidth, 8); in copyscreen8() 465 for(x=0; x<textureWidth; x+=4) in copyscreen16() 468 memcpy(dest+4, data+textureWidth, 8); in copyscreen16() 469 memcpy(dest+8, data+mult2(textureWidth), 8); in copyscreen16() 503 for(x=0; x<textureWidth; x+=4) in copyscreen32() 506 memcpy32(dest+4, data+textureWidth); in copyscreen32() 507 memcpy32(dest+8, data+mult2(textureWidth)); in copyscreen32() [all …]
|
/dports/games/openbor3711/openbor-6ec17fa/engine/wii/ |
H A D | video.c | 190 textureWidth = videomodes.hRes; in video_set_mode() 198 scaledWidth = (int)(textureWidth * texscale); in video_set_mode() 437 for(x=0; x<textureWidth; x+=8) in copyscreen8() 440 memcpy(dest+8, data+textureWidth, 8); in copyscreen8() 465 for(x=0; x<textureWidth; x+=4) in copyscreen16() 468 memcpy(dest+4, data+textureWidth, 8); in copyscreen16() 469 memcpy(dest+8, data+mult2(textureWidth), 8); in copyscreen16() 503 for(x=0; x<textureWidth; x+=4) in copyscreen32() 506 memcpy32(dest+4, data+textureWidth); in copyscreen32() 507 memcpy32(dest+8, data+mult2(textureWidth)); in copyscreen32() [all …]
|
/dports/games/critterding/critterding-beta12/src/utils/ftgl/FTFont/ |
H A D | FTTextureFont.cpp | 94 textureWidth(0), in FTTextureFontImpl() 112 textureWidth(0), in FTTextureFontImpl() 149 if(xOffset > (textureWidth - glyphWidth)) in MakeGlyphImpl() 162 xOffset, yOffset, textureWidth, textureHeight); in MakeGlyphImpl() 180 textureWidth = NextPowerOf2((remGlyphs * glyphWidth) + (padding * 2)); in CalculateTextureSize() 181 textureWidth = textureWidth > maximumGLTextureSize ? maximumGLTextureSize : textureWidth; in CalculateTextureSize() 183 int h = static_cast<int>((textureWidth - (padding * 2)) / glyphWidth + 0.5); in CalculateTextureSize() 194 int totalMemory = textureWidth * textureHeight; in CreateTexture() 207 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, textureWidth, textureHeight, in CreateTexture()
|
/dports/devel/upp/upp/bazaar/FTGL/src/FTFont/ |
H A D | FTTextureFont.cpp | 94 textureWidth(0), in FTTextureFontImpl() 112 textureWidth(0), in FTTextureFontImpl() 149 if(xOffset > (textureWidth - glyphWidth)) in MakeGlyphImpl() 162 xOffset, yOffset, textureWidth, textureHeight); in MakeGlyphImpl() 180 textureWidth = NextPowerOf2((remGlyphs * glyphWidth) + (padding * 2)); in CalculateTextureSize() 181 textureWidth = textureWidth > maximumGLTextureSize ? maximumGLTextureSize : textureWidth; in CalculateTextureSize() 183 int h = static_cast<int>((textureWidth - (padding * 2)) / glyphWidth + 0.5); in CalculateTextureSize() 194 int totalMemory = textureWidth * textureHeight; in CreateTexture() 207 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, textureWidth, textureHeight, in CreateTexture()
|
/dports/math/vtk6/VTK-6.2.0/ThirdParty/ftgl/src/ |
H A D | FTGLTextureFont.cpp | 28 textureWidth(0), in FTGLTextureFont() 66 if( xOffset > ( textureWidth - glyphWidth)) in MakeGlyph() 82 xOffset, yOffset, textureWidth, textureHeight); in MakeGlyph() 113 textureWidth = NextPowerOf2( (remGlyphs * glyphWidth) + padding * 2); in GetSize() 114 if( textureWidth > maxTextSize) in GetSize() 116 textureWidth = maxTextSize; in GetSize() 119 int h = static_cast<int>( (textureWidth - padding * 2) / glyphWidth); in GetSize() 132 int totalMem = textureWidth * textureHeight; in CreateTexture() 147 …glTexImage2D( GL_TEXTURE_2D, 0, GL_ALPHA, textureWidth, textureHeight, 0, GL_ALPHA, GL_UNSIGNED_BY… in CreateTexture()
|
/dports/games/openbor/openbor-3caaddd5/engine/sdl/ |
H A D | opengl.c | 34 static int textureWidth, textureHeight; // dimensions of game screen and GL texture 0 variable 207 displayWidth = textureWidth = videomodes.hRes; in video_gl_set_mode() 280 if((textureWidth > maxTextureSize) || (textureHeight > maxTextureSize)) in video_gl_set_mode() 297 video_gl_init_texture(0, textureWidth, textureHeight, videomodes.pixel); in video_gl_set_mode() 311 glUniform2fARB(glGetUniformLocationARB(shaderProgram, "texDims"), textureWidth, textureHeight); in video_gl_set_mode() 312 …float scaleFactor = MIN((float)viewportWidth / textureWidth, (float)viewportHeight / textureHeight… in video_gl_set_mode() 382 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, textureWidth, textureHeight, textureColorFormat[0], in video_gl_copy_screen() 420 textureWidth = mode->width; in video_gl_setup_yuv_overlay() 448 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, textureWidth, textureHeight, in video_gl_prepare_yuv_frame() 454 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, textureWidth/2, textureHeight/2, in video_gl_prepare_yuv_frame() [all …]
|
/dports/devel/bullet/bullet3-3.21/examples/RigidBody/ |
H A D | KinematicRigidBodyExample.cpp | 147 int textureWidth = 256; in initPhysics() local 149 rgbaTexture.resize(textureWidth * textureHeight * 3); in initPhysics() 151 for (int i = 0; i < textureWidth * textureHeight * 3; i++) in initPhysics() 153 for (int i = 0; i < textureWidth; i++) in initPhysics() 157 int a = i < textureWidth / 2 ? 1 : 0; in initPhysics() 158 int b = j < textureWidth / 2 ? 1 : 0; in initPhysics() 162 rgbaTexture[(i + j * textureWidth) * 3 + 0] = red; in initPhysics() 163 rgbaTexture[(i + j * textureWidth) * 3 + 1] = green; in initPhysics() 164 rgbaTexture[(i + j * textureWidth) * 3 + 2] = blue; in initPhysics() 169 …= m_guiHelper->getRenderInterface()->registerTexture(&rgbaTexture[0], textureWidth, textureHeight,… in initPhysics()
|
/dports/devel/py-bullet3/bullet3-3.21/examples/RigidBody/ |
H A D | KinematicRigidBodyExample.cpp | 147 int textureWidth = 256; in initPhysics() local 149 rgbaTexture.resize(textureWidth * textureHeight * 3); in initPhysics() 151 for (int i = 0; i < textureWidth * textureHeight * 3; i++) in initPhysics() 153 for (int i = 0; i < textureWidth; i++) in initPhysics() 157 int a = i < textureWidth / 2 ? 1 : 0; in initPhysics() 158 int b = j < textureWidth / 2 ? 1 : 0; in initPhysics() 162 rgbaTexture[(i + j * textureWidth) * 3 + 0] = red; in initPhysics() 163 rgbaTexture[(i + j * textureWidth) * 3 + 1] = green; in initPhysics() 164 rgbaTexture[(i + j * textureWidth) * 3 + 2] = blue; in initPhysics() 169 …= m_guiHelper->getRenderInterface()->registerTexture(&rgbaTexture[0], textureWidth, textureHeight,… in initPhysics()
|
/dports/games/openbor/openbor-3caaddd5/engine/psp/ |
H A D | image.c | 153 image->data[x + y * image->textureWidth] = color; in loadPNGImage() 258 image->textureWidth = getNextPower2(width); 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() 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() 339 int destinationSkipX = destination->textureWidth - width; in copyImageToImage() [all …]
|
/dports/games/openbor4432/openbor-ba1eb4f/engine/psp/ |
H A D | image.c | 153 image->data[x + y * image->textureWidth] = color; in loadPNGImage() 258 image->textureWidth = getNextPower2(width); 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() 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() 339 int destinationSkipX = destination->textureWidth - width; in copyImageToImage() [all …]
|
/dports/games/openbor3711/openbor-6ec17fa/engine/psp/ |
H A D | image.c | 153 image->data[x + y * image->textureWidth] = color; in loadPNGImage() 258 image->textureWidth = getNextPower2(width); 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() 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() 339 int destinationSkipX = destination->textureWidth - width; in copyImageToImage() [all …]
|
/dports/games/openbor3979/openbor-2bcf25b/engine/psp/ |
H A D | image.c | 153 image->data[x + y * image->textureWidth] = color; in loadPNGImage() 258 image->textureWidth = getNextPower2(width); 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() 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() 339 int destinationSkipX = destination->textureWidth - width; in copyImageToImage() [all …]
|
/dports/games/openbor3482/openbor-2c1ecd7/engine/psp/ |
H A D | image.c | 153 image->data[x + y * image->textureWidth] = color; in loadPNGImage() 258 image->textureWidth = getNextPower2(width); 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() 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() 339 int destinationSkipX = destination->textureWidth - width; in copyImageToImage() [all …]
|
/dports/devel/bullet/bullet3-3.21/examples/TinyRenderer/ |
H A D | main.cpp | 82 int textureWidth = gWidth; in main() local 104 unsigned char* image = new unsigned char[textureWidth * textureHeight * 4]; in main() 106 int textureHandle = app->m_renderer->registerTexture(image, textureWidth, textureHeight); in main() 136 unsigned char* pi = image + (y)*textureWidth * 3; in main() 137 for (int x = 0; x < textureWidth; ++x) in main() 146 renderData.m_depthBuffer[x + y * textureWidth] = -1e30f; in main() 192 unsigned char* pi = image + (y)*textureWidth * 3; in main() 193 for (int x = 0; x < textureWidth; ++x) in main() 209 unsigned char* pi = image + y * textureWidth * 3; in main() 210 for (int x = 0; x < textureWidth; ++x) in main()
|
/dports/devel/py-bullet3/bullet3-3.21/examples/TinyRenderer/ |
H A D | main.cpp | 82 int textureWidth = gWidth; in main() local 104 unsigned char* image = new unsigned char[textureWidth * textureHeight * 4]; in main() 106 int textureHandle = app->m_renderer->registerTexture(image, textureWidth, textureHeight); in main() 136 unsigned char* pi = image + (y)*textureWidth * 3; in main() 137 for (int x = 0; x < textureWidth; ++x) in main() 146 renderData.m_depthBuffer[x + y * textureWidth] = -1e30f; in main() 192 unsigned char* pi = image + (y)*textureWidth * 3; in main() 193 for (int x = 0; x < textureWidth; ++x) in main() 209 unsigned char* pi = image + y * textureWidth * 3; in main() 210 for (int x = 0; x < textureWidth; ++x) in main()
|
/dports/games/scourge/scourge/src/gui/ |
H A D | widget.cpp | 452 int left, int right, int textureWidth, bool inverse ) { in drawBorderedTexture() argument 465 glTexCoord2f( static_cast<float>( left ) / static_cast<float>( textureWidth ), 1 ); in drawBorderedTexture() 467 glTexCoord2f( static_cast<float>( left ) / static_cast<float>( textureWidth ), 0 ); in drawBorderedTexture() 475 glTexCoord2f( 1.0f - ( static_cast<float>( right ) / static_cast<float>( textureWidth ) ), 1 ); in drawBorderedTexture() 477 glTexCoord2f( 1.0f - ( static_cast<float>( right ) / static_cast<float>( textureWidth ) ), 0 ); in drawBorderedTexture() 479 glTexCoord2f( static_cast<float>( left ) / static_cast<float>( textureWidth ), 0 ); in drawBorderedTexture() 481 glTexCoord2f( static_cast<float>( left ) / static_cast<float>( textureWidth ), 1 ); in drawBorderedTexture() 499 glTexCoord2f( static_cast<float>( left ) / static_cast<float>( textureWidth ), 1 ); in drawBorderedTexture() 501 glTexCoord2f( static_cast<float>( left ) / static_cast<float>( textureWidth ), 0 ); in drawBorderedTexture() 505 glTexCoord2f( static_cast<float>( left ) / static_cast<float>( textureWidth ), 0 ); in drawBorderedTexture() [all …]
|
/dports/games/openbor3482/openbor-2c1ecd7/engine/sdl/ |
H A D | opengl.c | 49 static int textureWidth, textureHeight; // dimensions of game screen and GL texture variable 126 allocTextureWidth = textureWidth; in video_gl_init_textures() 131 allocTextureWidth = nextpowerof2(textureWidth); in video_gl_init_textures() 137 tcx = (textureWidth == 0) ? 0 : (textureWidth<<16) / allocTextureWidth; in video_gl_init_textures() 140 tcx = (textureWidth == 0) ? 0 : (float)textureWidth / (float)allocTextureWidth; in video_gl_init_textures() 160 …if(bytesPerPixel == 1) bscreen = SDL_AllocSurface(SDL_SWSURFACE, textureWidth, textureHeight, 16, … in video_gl_init_textures() 168 textureWidth = videomodes.hRes; in video_gl_set_mode() 230 if((textureWidth > maxTextureSize) || (textureHeight > maxTextureSize)) in video_gl_set_mode() 366 glTexSubImage2D(textureTarget, 0, 0, 0, textureWidth, textureHeight, textureColorFormat, in video_gl_copy_screen() 370 …texScale = MIN((float)viewportWidth/(float)textureWidth, (float)viewportHeight/(float)textureHeigh… in video_gl_copy_screen() [all …]
|
/dports/games/openbor3711/openbor-6ec17fa/engine/sdl/ |
H A D | opengl.c | 49 static int textureWidth, textureHeight; // dimensions of game screen and GL texture variable 126 allocTextureWidth = textureWidth; in video_gl_init_textures() 131 allocTextureWidth = nextpowerof2(textureWidth); in video_gl_init_textures() 137 tcx = (textureWidth == 0) ? 0 : (textureWidth<<16) / allocTextureWidth; in video_gl_init_textures() 140 tcx = (textureWidth == 0) ? 0 : (float)textureWidth / (float)allocTextureWidth; in video_gl_init_textures() 160 …if(bytesPerPixel == 1) bscreen = SDL_AllocSurface(SDL_SWSURFACE, textureWidth, textureHeight, 16, … in video_gl_init_textures() 168 textureWidth = videomodes.hRes; in video_gl_set_mode() 230 if((textureWidth > maxTextureSize) || (textureHeight > maxTextureSize)) in video_gl_set_mode() 371 glTexSubImage2D(textureTarget, 0, 0, 0, textureWidth, textureHeight, textureColorFormat, in video_gl_copy_screen() 375 …texScale = MIN((float)viewportWidth/(float)textureWidth, (float)viewportHeight/(float)textureHeigh… in video_gl_copy_screen() [all …]
|
/dports/games/bzflag-server/bzflag-2.4.22/tools/TextTool2/ |
H A D | TextTool2.cpp | 321 int textureWidth = pow(2, ceil(log2(charsSquare * maxPixels))); in main() local 324 std::cerr << "generating " << textureWidth << "x" << textureHeight << " texture... "; in main() 326 png_bytep *texture = (png_bytep*) malloc(textureWidth * textureHeight * 2); in main() 330 for (int column = 0; column < textureWidth; ++column) in main() 333 … ((unsigned char*) texture)[row * textureWidth * 2 + column * 2 + 1] = 0x0; // alpha value in main() 355 "TextureWidth: " << textureWidth << "\n" << in main() 363 … int basePositionX = j % (textureWidth / maxPixels) * maxPixels + charInfoList[j].adjustX; in main() 364 int basePositionY = j / (textureWidth / maxPixels) * maxPixels + in main() 371 (basePositionY + row) * textureWidth * 2 + in main() 382 "StartY: " << (j / (textureWidth / maxPixels) * maxPixels) << "\n" << in main() [all …]
|