/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() 213 void dumpTextureToPng(int textureWidth, int textureHeight, const char* fileName) in dumpTextureToPng() argument 216 unsigned char* pixels = (unsigned char*)malloc(textureWidth * textureHeight); in dumpTextureToPng() 217 glReadPixels(0, 0, textureWidth, textureHeight, GL_RED, GL_UNSIGNED_BYTE, pixels); in dumpTextureToPng() 220 for (int j = 0; j < textureHeight; j++) in dumpTextureToPng() 226 for (int j = 0; j < textureHeight / 2; j++) 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() 213 void dumpTextureToPng(int textureWidth, int textureHeight, const char* fileName) in dumpTextureToPng() argument 216 unsigned char* pixels = (unsigned char*)malloc(textureWidth * textureHeight); in dumpTextureToPng() 217 glReadPixels(0, 0, textureWidth, textureHeight, GL_RED, GL_UNSIGNED_BYTE, pixels); in dumpTextureToPng() 220 for (int j = 0; j < textureHeight; j++) in dumpTextureToPng() 226 for (int j = 0; j < textureHeight / 2; j++) 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/chromium-legacy/chromium-88.0.4324.182/third_party/angle/src/tests/gl_tests/ |
H A D | MaxTextureSizeTest.cpp | 95 GLsizei textureHeight = 64; in TEST_P() local 97 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P() 98 for (int y = 0; y < textureHeight; y++) in TEST_P() 106 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255); in TEST_P() 112 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, textureWidth, textureHeight, 0, GL_RGBA, in TEST_P() 157 GLsizei textureHeight = mMaxTexture2DSize; in TEST_P() local 159 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P() 160 for (int y = 0; y < textureHeight; y++) in TEST_P() 168 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255); in TEST_P() 180 glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8_OES, textureWidth, textureHeight); in TEST_P() [all …]
|
/dports/math/vtk6/VTK-6.2.0/ThirdParty/ftgl/src/ |
H A D | FTGLTextureFont.cpp | 29 textureHeight(0), in FTGLTextureFont() 71 if( yOffset > ( textureHeight - glyphHeight)) in MakeGlyph() 82 xOffset, yOffset, textureWidth, textureHeight); in MakeGlyph() 121 textureHeight = NextPowerOf2( (( numGlyphs / h) + 1) * glyphHeight); in GetSize() 122 textureHeight = textureHeight > maxTextSize ? maxTextSize : textureHeight; 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/www/firefox-legacy/firefox-52.8.0esr/gfx/angle/src/tests/gl_tests/ |
H A D | MaxTextureSizeTest.cpp | 109 GLsizei textureHeight = 64; in TEST_P() local 111 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P() 112 for (int y = 0; y < textureHeight; y++) in TEST_P() 120 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255); in TEST_P() 170 GLsizei textureHeight = mMaxTexture2DSize; in TEST_P() local 172 std::vector<GLubyte> data(textureWidth * textureHeight * 4); in TEST_P() 173 for (int y = 0; y < textureHeight; y++) in TEST_P() 181 pixel[1] = static_cast<GLubyte>((float(y) / textureHeight) * 255); in TEST_P() 189 glTexStorage2DEXT(GL_TEXTURE_2D, 1, GL_RGBA8_OES, textureWidth, textureHeight); in TEST_P() 193 glTexStorage2D(GL_TEXTURE_2D, 1, GL_RGBA8_OES, textureWidth, textureHeight); in TEST_P() [all …]
|
/dports/games/critterding/critterding-beta12/src/utils/ftgl/FTFont/ |
H A D | FTTextureFont.cpp | 95 textureHeight(0), in FTTextureFontImpl() 113 textureHeight(0), in FTTextureFontImpl() 154 if(yOffset > (textureHeight - glyphHeight)) in MakeGlyphImpl() 162 xOffset, yOffset, textureWidth, textureHeight); in MakeGlyphImpl() 185 textureHeight = NextPowerOf2(((numGlyphs / h) + 1) * glyphHeight); in CalculateTextureSize() 186 textureHeight = textureHeight > maximumGLTextureSize ? maximumGLTextureSize : textureHeight; 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 | 95 textureHeight(0), in FTTextureFontImpl() 113 textureHeight(0), in FTTextureFontImpl() 154 if(yOffset > (textureHeight - glyphHeight)) in MakeGlyphImpl() 162 xOffset, yOffset, textureWidth, textureHeight); in MakeGlyphImpl() 185 textureHeight = NextPowerOf2(((numGlyphs / h) + 1) * glyphHeight); in CalculateTextureSize() 186 textureHeight = textureHeight > maximumGLTextureSize ? maximumGLTextureSize : textureHeight; in CalculateTextureSize() 194 int totalMemory = textureWidth * textureHeight; in CreateTexture() 207 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, textureWidth, textureHeight, in CreateTexture()
|
/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() 26 textureHeight = max(height, textureHeight); in resize() 33 buffer = new uint32_t[textureWidth * textureHeight]; in resize() 39 …glTexImage2D(GL_TEXTURE_2D, 0, GL_RGB, textureWidth, textureHeight, 0, GL_BGRA, GL_UNSIGNED_INT_8_… in resize() 69 double h = (double)rasterHeight / (double)textureHeight; in paintGL() 86 textureHeight = 0; in initializeGL() 148 memset(widget->buffer, 0, widget->textureWidth * widget->textureHeight * sizeof(uint32_t)); in clear()
|
/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 208 displayHeight = textureHeight = videomodes.vRes; 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() 421 textureHeight = mode->height; 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/games/openbor4432/openbor-ba1eb4f/engine/sdl/ |
H A D | opengl.c | 35 static int textureWidth, textureHeight; // dimensions of game screen and GL texture 0 variable 186 displayHeight = textureHeight = videomodes.vRes; in video_gl_set_mode() 258 if((textureWidth > maxTextureSize) || (textureHeight > maxTextureSize)) in video_gl_set_mode() 260 …reate a %ix%i OpenGL texture (max texture size %i)...", textureWidth, textureHeight, maxTextureSiz… in video_gl_set_mode() 275 video_gl_init_texture(0, textureWidth, textureHeight, videomodes.pixel); in video_gl_set_mode() 335 …xScale = MIN((float)viewportWidth/(float)textureWidth, (float)viewportHeight/(float)textureHeight); in render() 357 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, textureWidth, textureHeight, textureColorFormat[0], in video_gl_copy_screen() 409 textureHeight = mode->height; in video_gl_setup_yuv_overlay() 436 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, textureWidth, textureHeight, in video_gl_prepare_yuv_frame() 442 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, textureWidth/2, textureHeight/2, in video_gl_prepare_yuv_frame() [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 127 allocTextureHeight = textureHeight; in video_gl_init_textures() 132 allocTextureHeight = nextpowerof2(textureHeight); in video_gl_init_textures() 138 tcy = (textureHeight == 0) ? 0 : (textureHeight<<16) / allocTextureHeight; in video_gl_init_textures() 141 tcy = (textureHeight == 0) ? 0 : (float)textureHeight / (float)allocTextureHeight; in video_gl_init_textures() 160 …if(bytesPerPixel == 1) bscreen = SDL_AllocSurface(SDL_SWSURFACE, textureWidth, textureHeight, 16, … in video_gl_init_textures() 169 textureHeight = videomodes.vRes; 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 …xScale = MIN((float)viewportWidth/(float)textureWidth, (float)viewportHeight/(float)textureHeight); 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 127 allocTextureHeight = textureHeight; in video_gl_init_textures() 132 allocTextureHeight = nextpowerof2(textureHeight); in video_gl_init_textures() 138 tcy = (textureHeight == 0) ? 0 : (textureHeight<<16) / allocTextureHeight; in video_gl_init_textures() 141 tcy = (textureHeight == 0) ? 0 : (float)textureHeight / (float)allocTextureHeight; in video_gl_init_textures() 160 …if(bytesPerPixel == 1) bscreen = SDL_AllocSurface(SDL_SWSURFACE, textureWidth, textureHeight, 16, … in video_gl_init_textures() 169 textureHeight = videomodes.vRes; 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 …xScale = MIN((float)viewportWidth/(float)textureWidth, (float)viewportHeight/(float)textureHeight); in video_gl_copy_screen() [all …]
|
/dports/devel/love5/love-0.5-0/src/opengl/ |
H A D | Image.cpp | 42 return textureHeight; in getTextureHeight() 55 glTexCoord2f(0.0,1.0); glVertex2i(0,textureHeight); in draw() 77 float yTex = y/(float)textureHeight; in draws() 80 float hTex = h/(float)textureHeight; in draws() 130 float yTex = cy/(float)textureHeight; in draws() 132 float hTex = h/(float)textureHeight; in draws() 189 this->textureHeight = (int)height; in read() 242 vertices[3] = (float)textureHeight; in lock() 244 vertices[5] = (float)textureHeight; in lock() 383 this->textureHeight = height; in padTwoPower() [all …]
|
/dports/games/openbor3979/openbor-2bcf25b/engine/sdl/ |
H A D | opengl.c | 61 static int textureWidth, textureHeight; // dimensions of game screen and GL texture variable 149 allocTextureHeight = textureHeight; in video_gl_init_textures() 154 allocTextureHeight = nextpowerof2(textureHeight); in video_gl_init_textures() 160 tcy = (textureHeight == 0) ? 0 : (textureHeight<<16) / allocTextureHeight; in video_gl_init_textures() 163 tcy = (textureHeight == 0) ? 0 : (float)textureHeight / (float)allocTextureHeight; in video_gl_init_textures() 182 …if(bytesPerPixel == 1) bscreen = SDL_CreateRGBSurface(SDL_SWSURFACE, textureWidth, textureHeight, … in video_gl_init_textures() 191 textureHeight = videomodes.vRes; in video_gl_set_mode() 274 if((textureWidth > maxTextureSize) || (textureHeight > maxTextureSize)) in video_gl_set_mode() 416 glTexSubImage2D(textureTarget, 0, 0, 0, textureWidth, textureHeight, textureColorFormat, in video_gl_copy_screen() 420 …xScale = MIN((float)viewportWidth/(float)textureWidth, (float)viewportHeight/(float)textureHeight); in video_gl_copy_screen() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/angle/src/tests/perf_tests/ |
H A D | DispatchComputePerf.cpp | 31 unsigned int textureHeight = 32; member 91 mDispatchY = params.textureHeight / params.localSizeY; in initializeBenchmark() 119 unsigned int textureDataSize = params.textureWidth * params.textureHeight; in initTextures() 125 glTexImage2D(GL_TEXTURE_2D, 0, GL_R32F, params.textureWidth, params.textureHeight, 0, GL_RED, in initTextures() 134 glTexStorage2D(GL_TEXTURE_2D, 1, GL_R32F, params.textureWidth, params.textureHeight); in initTextures() 135 glTexSubImage2D(GL_TEXTURE_2D, 0, 0, 0, params.textureWidth, params.textureHeight, GL_RED, in initTextures()
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/webrtc/sdk/android/api/org/webrtc/ |
H A D | SurfaceTextureHelper.java | 158 private int textureHeight; 250 public void setTextureSize(int textureWidth, int textureHeight) { 254 if (textureHeight <= 0) { 256 "Texture height must be positive, but was " + textureHeight); 258 surfaceTexture.setDefaultBufferSize(textureWidth, textureHeight); 261 this.textureHeight = textureHeight; 344 if (textureWidth == 0 || textureHeight == 0) { 362 new TextureBufferImpl(textureWidth, textureHeight, TextureBuffer.Type.OES, oesTextureId,
|
/dports/net-im/tg_owt/tg_owt-d578c76/src/sdk/android/api/org/webrtc/ |
H A D | SurfaceTextureHelper.java | 158 private int textureHeight; 254 public void setTextureSize(int textureWidth, int textureHeight) { 258 if (textureHeight <= 0) { 260 "Texture height must be positive, but was " + textureHeight); 262 surfaceTexture.setDefaultBufferSize(textureWidth, textureHeight); 265 this.textureHeight = textureHeight; 359 if (textureWidth == 0 || textureHeight == 0) { 377 new TextureBufferImpl(textureWidth, textureHeight, TextureBuffer.Type.OES, oesTextureId,
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/webrtc/sdk/android/api/org/webrtc/ |
H A D | SurfaceTextureHelper.java | 158 private int textureHeight; 254 public void setTextureSize(int textureWidth, int textureHeight) { 258 if (textureHeight <= 0) { 260 "Texture height must be positive, but was " + textureHeight); 262 surfaceTexture.setDefaultBufferSize(textureWidth, textureHeight); 265 this.textureHeight = textureHeight; 359 if (textureWidth == 0 || textureHeight == 0) { 377 new TextureBufferImpl(textureWidth, textureHeight, TextureBuffer.Type.OES, oesTextureId,
|
/dports/www/firefox/firefox-99.0/third_party/libwebrtc/sdk/android/api/org/webrtc/ |
H A D | SurfaceTextureHelper.java | 158 private int textureHeight; 254 public void setTextureSize(int textureWidth, int textureHeight) { 258 if (textureHeight <= 0) { 260 "Texture height must be positive, but was " + textureHeight); 262 surfaceTexture.setDefaultBufferSize(textureWidth, textureHeight); 265 this.textureHeight = textureHeight; 359 if (textureWidth == 0 || textureHeight == 0) { 377 new TextureBufferImpl(textureWidth, textureHeight, TextureBuffer.Type.OES, oesTextureId,
|
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/libwebrtc/webrtc/sdk/android/api/org/webrtc/ |
H A D | SurfaceTextureHelper.java | 158 private int textureHeight; 250 public void setTextureSize(int textureWidth, int textureHeight) { 254 if (textureHeight <= 0) { 256 "Texture height must be positive, but was " + textureHeight); 258 surfaceTexture.setDefaultBufferSize(textureWidth, textureHeight); 261 this.textureHeight = textureHeight; 344 if (textureWidth == 0 || textureHeight == 0) { 362 new TextureBufferImpl(textureWidth, textureHeight, TextureBuffer.Type.OES, oesTextureId,
|
/dports/www/firefox-esr/firefox-91.8.0/third_party/libwebrtc/webrtc/sdk/android/api/org/webrtc/ |
H A D | SurfaceTextureHelper.java | 158 private int textureHeight; 250 public void setTextureSize(int textureWidth, int textureHeight) { 254 if (textureHeight <= 0) { 256 "Texture height must be positive, but was " + textureHeight); 258 surfaceTexture.setDefaultBufferSize(textureWidth, textureHeight); 261 this.textureHeight = textureHeight; 344 if (textureWidth == 0 || textureHeight == 0) { 362 new TextureBufferImpl(textureWidth, textureHeight, TextureBuffer.Type.OES, oesTextureId,
|
/dports/lang/spidermonkey78/firefox-78.9.0/media/webrtc/trunk/webrtc/sdk/android/api/org/webrtc/ |
H A D | SurfaceTextureHelper.java | 158 private int textureHeight; 250 public void setTextureSize(int textureWidth, int textureHeight) { 254 if (textureHeight <= 0) { 256 "Texture height must be positive, but was " + textureHeight); 258 surfaceTexture.setDefaultBufferSize(textureWidth, textureHeight); 261 this.textureHeight = textureHeight; 344 if (textureWidth == 0 || textureHeight == 0) { 362 new TextureBufferImpl(textureWidth, textureHeight, TextureBuffer.Type.OES, oesTextureId,
|
/dports/graphics/ftgl/ftgl-2.4.0/src/FTFont/ |
H A D | FTTextureFont.cpp | 98 textureHeight(0), in FTTextureFontImpl() 116 textureHeight(0), in FTTextureFontImpl() 157 if(yOffset > (textureHeight - glyphHeight)) in MakeGlyphImpl() 165 xOffset, yOffset, textureWidth, textureHeight); in MakeGlyphImpl() 194 textureHeight = ClampSize(glyphHeight * tmp + padding * 2, in CalculateTextureSize() 203 int totalMemory = textureWidth * textureHeight; in CreateTexture() 216 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, textureWidth, textureHeight, in CreateTexture()
|
/dports/multimedia/kodi/xbmc-19.3-Matrix/xbmc/guilib/ |
H A D | GUIListContainer.cpp | 273 … float textureHeight, float itemWidth, float itemHeight, float spaceBetweenItems) in CGUIListContainer() argument 277 …ntrolLayouts(width, textureHeight + spaceBetweenItems, false, labelInfo, labelInfo2, textureButton… in CGUIListContainer() 281 …ntrolLayouts(width, textureHeight + spaceBetweenItems, true, labelInfo, labelInfo2, textureButton,… in CGUIListContainer() 282 …m_height = floor(m_height / (textureHeight + spaceBetweenItems)) * (textureHeight + spaceBetweenIt… in CGUIListContainer()
|
/dports/games/openbor3979/openbor-2bcf25b/engine/wii/ |
H A D | video.c | 53 int textureWidth, textureHeight; // dimensions of game screen variable 191 textureHeight = videomodes.vRes; in video_set_mode() 192 …texturemem_size = GX_GetTexBufferSize(textureWidth, textureHeight, texture_formats[bytes_per_pixel… in video_set_mode() 197 …xscale = MIN((float)viewportWidth/(float)textureWidth, (float)viewportHeight/(float)textureHeight); in video_set_mode() 199 scaledHeight = (int)(textureHeight * texscale); in video_set_mode() 208 …GX_InitTexObjCI(&texture[0], texturemem[0], textureWidth, textureHeight, GX_TF_CI8, GX_CLAMP, GX_C… in video_set_mode() 209 …GX_InitTexObjCI(&texture[1], texturemem[1], textureWidth, textureHeight, GX_TF_CI8, GX_CLAMP, GX_C… in video_set_mode() 213 …GX_InitTexObj(&texture[0], texturemem[0], textureWidth, textureHeight, texture_formats[bytes_per_p… in video_set_mode() 435 for(y=0; y<textureHeight; y+=4) in copyscreen8() 463 for(y=0; y<textureHeight; y+=4) in copyscreen16() [all …]
|