Home
last modified time | relevance | path

Searched refs:texWidth (Results 1 – 25 of 264) sorted by relevance

1234567891011

/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/tests/spec/gl-3.2/layered-rendering/
H A Dblit.c64 static const int texWidth = 32; variable
98 glBlitFramebuffer(0, 0, texWidth, texHeight, in display_texture()
99 x, y, x + texWidth, y + texDepth * texHeight, in display_texture()
122 glBlitFramebuffer(0, 0, texWidth, texHeight, in display_texture()
125 x + texWidth, in display_texture()
146 for (i = 0; i < texWidth * texHeight; i++) { in gen_color_data()
147 int offset = j * texWidth * texHeight * 3 + i * 3; in gen_color_data()
263 glBlitFramebuffer(0, 0, texWidth, texHeight, in testFramebufferBlitLayered()
264 0, 0, texWidth, texHeight, in testFramebufferBlitLayered()
273 pass = piglit_probe_rect_rgb(x + texWidth, y, in testFramebufferBlitLayered()
[all …]
/dports/games/libretro-play/Play--3cd0a367b5e24c061a6310c68c9fa7f6b531ebd4/Source/gs/GSH_OpenGL/
H A DGSH_OpenGL_Texture.cpp174 assert(texWidth <= 1024); in PrepareTexture()
176 texWidth = std::min<uint32>(texWidth, 1024); in PrepareTexture()
293 dst += texWidth; in TexUpdater_Psm32()
319 dst += texWidth; in TexUpdater_Psm16()
552 if(texWidth < 16) in TexUpdater_Psm8()
577 colDst += texWidth * 4; in TexUpdater_Psm8()
581 dst += texWidth * 16; in TexUpdater_Psm8()
590 if(texWidth < 16) in TexUpdater_Psm4()
623 dst += texWidth * 16; in TexUpdater_Psm4()
643 dst += texWidth; in TexUpdater_Psm48()
[all …]
/dports/games/lwjgl/lwjgl-2df01dd/src/java/org/lwjgl/examples/spaceinvaders/
H A DTexture.java64 private int texWidth; field in Texture
164 public void setTextureWidth(int texWidth) { in setTextureWidth() argument
165 this.texWidth = texWidth; in setTextureWidth()
184 if (texWidth != 0) { in setWidth()
185 widthRatio = ((float) width) / texWidth; in setWidth()
H A DTextureLoader.java223 int texWidth = 2; in convertImageData() local
228 while (texWidth < bufferedImage.getWidth()) { in convertImageData()
229 texWidth *= 2; in convertImageData()
236 texture.setTextureWidth(texWidth); in convertImageData()
241 raster = Raster.createInterleavedRaster(DataBuffer.TYPE_BYTE,texWidth,texHeight,4,null); in convertImageData()
244 raster = Raster.createInterleavedRaster(DataBuffer.TYPE_BYTE,texWidth,texHeight,3,null); in convertImageData()
251 g.fillRect(0,0,texWidth,texHeight); in convertImageData()
/dports/astro/celestia-gtk/celestia-1.6.1/src/celtxf/
H A Dtexturefont.cpp34 texWidth(0), in TextureFont()
194 texWidth, texHeight, in buildTexture()
309 unsigned int texWidth = readUint32(in, byteSwap); in load() local
329 float dx = 0.5f / texWidth; in load()
353 float fWidth = texWidth; in load()
367 font->texWidth = texWidth; in load()
382 if (in.gcount() != (signed)(texWidth * texHeight)) in load()
394 int rowBytes = (texWidth + 7) >> 3; in load()
420 for (unsigned int x = 0; x < texWidth; x++) in load()
423 fontImage[y * texWidth + x] = 0xff; in load()
[all …]
/dports/astro/celestia/celestia-1.6.1/src/celtxf/
H A Dtexturefont.cpp34 texWidth(0), in TextureFont()
194 texWidth, texHeight, in buildTexture()
309 unsigned int texWidth = readUint32(in, byteSwap); in load() local
329 float dx = 0.5f / texWidth; in load()
353 float fWidth = texWidth; in load()
367 font->texWidth = texWidth; in load()
382 if (in.gcount() != (signed)(texWidth * texHeight)) in load()
394 int rowBytes = (texWidth + 7) >> 3; in load()
420 for (unsigned int x = 0; x < texWidth; x++) in load()
423 fontImage[y * texWidth + x] = 0xff; in load()
[all …]
/dports/devel/bullet/bullet3-3.21/examples/ExampleBrowser/GwenGUISupport/
H A DGraphingTexture.cpp26 bool GraphingTexture::create(int texWidth, int texHeight) in create() argument
28 m_width = texWidth; in create()
32 m_imageData.resize(texWidth * texHeight * 4); in create()
36 GLubyte* pi = &m_imageData[y * texWidth * 4]; in create()
37 for (int x = 0; x < texWidth; ++x) in create()
/dports/devel/py-bullet3/bullet3-3.21/examples/ExampleBrowser/GwenGUISupport/
H A DGraphingTexture.cpp26 bool GraphingTexture::create(int texWidth, int texHeight) in create() argument
28 m_width = texWidth; in create()
32 m_imageData.resize(texWidth * texHeight * 4); in create()
36 GLubyte* pi = &m_imageData[y * texWidth * 4]; in create()
37 for (int x = 0; x < texWidth; ++x) in create()
/dports/graphics/jogamp-jogl/jogl/src/jogl/classes/com/jogamp/opengl/util/texture/
H A DTexture.java173 private int texWidth; field in Texture
261 this.texWidth = texWidth; in Texture()
380 return texWidth; in getWidth()
558 texWidth = imgWidth; in updateImage()
571 texWidth = imgWidth; in updateImage()
586 texWidth = imgWidth; in updateImage()
598 texWidth = imgWidth; in updateImage()
631 texWidth = nextPowerOfTwo(imgWidth); in updateImage()
674 int width = texWidth; in updateImage()
1076 if (dstx + width > texWidth) { in updateSubImageImpl()
[all …]
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/tests/spec/arb_framebuffer_srgb/
H A Dsrgb_pbo.c53 const unsigned int texWidth = 256; variable
164 texWidth, texHeight); in piglit_init()
174 const unsigned int numPixels = texWidth * texHeight; in piglit_init()
199 glViewport(0, 0, texWidth, texHeight); in piglit_init()
213 tex = createTexture2D(GL_RGBA4, 1, texWidth, texHeight); in piglit_init()
236 glPixelStorei(GL_UNPACK_ROW_LENGTH, texWidth); in piglit_init()
242 texWidth, texHeight, in piglit_init()
248 texWidth, texHeight); in piglit_init()
/dports/graphics/jogl/jogl-1.1.1_9/jogl/src/classes/com/sun/opengl/util/texture/
H A DTexture.java146 private int texWidth; field in Texture
276 return texWidth; in getWidth()
360 float tx1 = (float)x1 / (float)texWidth; in getSubImageTexCoords()
362 float tx2 = (float)x2 / (float)texWidth; in getSubImageTexCoords()
439 texWidth = imgWidth; in updateImage()
452 texWidth = imgWidth; in updateImage()
461 texWidth = imgWidth; in updateImage()
491 texWidth = nextPowerOfTwo(imgWidth); in updateImage()
533 int width = texWidth; in updateImage()
929 if (dstx + width > texWidth) { in updateSubImageImpl()
[all …]
/dports/graphics/electricsheep/electricsheep-37ba0fd692d6581f8fe009ed11c9650cd8174123/client_generic/DisplayOutput/OpenGL/
H A DTextureFlatGL.cpp196 uint32 texWidth, texHeight; in Upload() local
219 texWidth = imgWidth; in Upload()
224 texWidth = Base::Math::UpperPowerOfTwo( _spImage->GetWidth( mipMapLevel ) ); in Upload()
228 if ( texWidth == imgWidth && texHeight == imgHeight ) in Upload()
234 …glTexImage2D( m_TexTarget, mipMapLevel, internalFormat, texWidth, texHeight, 0, srcFormat, srcType… in Upload()
243 SetRect( Base::Math::CRect( texWidth, texHeight ) ); in Upload()
250 …glTexImage2D( m_TexTarget, mipMapLevel, internalFormat, texWidth, texHeight, 0, srcFormat, srcType… in Upload()
262 … SetRect( Base::Math::CRect( (fp4)imgWidth / (fp4)texWidth, (fp4)imgHeight / (fp4)texHeight ) ); in Upload()
/dports/games/shootingstar/shootingstar-1.2.0/src/engine/
H A DcTextureFont.cpp69 int texWidth, texHeight; in Initialize() local
72 texManager.GetTextureSize (filename, texWidth, texHeight); in Initialize()
77 MakeDisplayLists (texWidth, texHeight); in Initialize()
81 cTextureFont::MakeDisplayLists (int texWidth, int texHeight) in MakeDisplayLists() argument
88 float charWidth = float (mWidth) / float (texWidth); in MakeDisplayLists()
90 int rowWidth = texWidth / mWidth; in MakeDisplayLists()
/dports/games/libretro-play/Play--3cd0a367b5e24c061a6310c68c9fa7f6b531ebd4/Source/gs/GSH_Direct3D9/
H A DGSH_Direct3D9_Texture.cpp121 uint32 texWidth = texturePageSize.first; in LoadTexture() local
125 if((texX + texWidth) > tex0.GetWidth()) in LoadTexture()
127 texWidth = tex0.GetWidth() - texX; in LoadTexture()
133 …dater[tex0.nPsm]))(&lockedRect, tex0.GetBufPtr(), tex0.nBufWidth, texX, texY, texWidth, texHeight); in LoadTexture()
207 …tr, uint32 bufWidth, unsigned int texX, unsigned int texY, unsigned int texWidth, unsigned int tex… in TexUpdater_Psm32() argument
217 for(unsigned int x = 0; x < texWidth; x++) in TexUpdater_Psm32()
228 …tr, uint32 bufWidth, unsigned int texX, unsigned int texY, unsigned int texWidth, unsigned int tex… in TexUpdater_Psm16() argument
238 for(unsigned int x = 0; x < texWidth; x++) in TexUpdater_Psm16()
254 …tr, uint32 bufWidth, unsigned int texX, unsigned int texY, unsigned int texWidth, unsigned int tex… in TexUpdater_Psm48() argument
264 for(unsigned int x = 0; x < texWidth; x++) in TexUpdater_Psm48()
[all …]
/dports/games/openbor/openbor-3caaddd5/engine/vita/
H A Dvideo.c94 unsigned int texWidth = vita2d_texture_get_width(targetTexture), in video_copy_screen() local
97 if (stride == texWidth * vitaBytesPerPixel) in video_copy_screen()
108 memcpy(dstLine, srcLine, texWidth * vitaBytesPerPixel); in video_copy_screen()
110 srcLine += texWidth * vitaBytesPerPixel; in video_copy_screen()
115 float scaleFactor = 960.0f / texWidth; in video_copy_screen()
119 float xOffset = (960.0f - texWidth * scaleFactor) / 2.0f; in video_copy_screen()
/dports/comms/limesuite/LimeSuite-20.10.0/src/oglGraph/
H A DGLFont.cpp87 unsigned short texWidth = 0; in load() local
91 in.read((char*)&texWidth, sizeof(unsigned short)); in load()
92 m_texwidth = texWidth; in load()
97 unsigned char *bitmap = new unsigned char[texWidth*texHeight]; in load()
98 in.read((char*)bitmap, texWidth*texHeight); in load()
116 texWidth, in load()
179 unsigned short texWidth = 0; in loadFromArray() local
183 in.read((char*)&texWidth, sizeof(unsigned short)); in loadFromArray()
184 m_texwidth = texWidth; in loadFromArray()
190 in.read((char*)bitmap, texWidth*texHeight); in loadFromArray()
[all …]
/dports/games/critterding/critterding-beta12/src/utils/ftgl/FTFont/
H A DFTBufferFont.cpp229 int width, height, texWidth, texHeight; in RenderI() local
281 texWidth = NextPowerOf2(width); in RenderI()
290 buffer->Size(texWidth, texHeight); in RenderI()
303 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, texWidth, texHeight, 0, in RenderI()
314 glTexCoord2f(padding / texWidth, in RenderI()
317 glTexCoord2f(padding / texWidth, in RenderI()
320 glTexCoord2f((width - padding) / texWidth, in RenderI()
323 glTexCoord2f((width - padding) / texWidth, in RenderI()
/dports/devel/upp/upp/bazaar/FTGL/src/FTFont/
H A DFTBufferFont.cpp229 int width, height, texWidth, texHeight; in RenderI() local
281 texWidth = NextPowerOf2(width); in RenderI()
290 buffer->Size(texWidth, texHeight); in RenderI()
303 glTexImage2D(GL_TEXTURE_2D, 0, GL_ALPHA, texWidth, texHeight, 0, in RenderI()
314 glTexCoord2f(padding / texWidth, in RenderI()
317 glTexCoord2f(padding / texWidth, in RenderI()
320 glTexCoord2f((width - padding) / texWidth, in RenderI()
323 glTexCoord2f((width - padding) / texWidth, in RenderI()
/dports/graphics/glx-utils/demos-5435fc7fbd332e171da9a71e33a9b190e9462cf0/src/tests/
H A Dmipmap_view.c231 int texWidth = TexWidth, texHeight = TexHeight; in Display() local
261 if (texWidth == 1 && texHeight == 1) in Display()
263 texWidth = TexWidth >> bias; in Display()
265 if (texWidth < 1) in Display()
266 texWidth = 1; in Display()
280 texWidth, texHeight); in Display()
292 glTexCoord2f(1, 0); glVertex2f(texWidth, 0); in Display()
293 glTexCoord2f(1, 1); glVertex2f(texWidth, texHeight); in Display()
/dports/graphics/mesa-demos/mesa-demos-8.4.0/src/tests/
H A Dmipmap_view.c231 int texWidth = TexWidth, texHeight = TexHeight; in Display() local
261 if (texWidth == 1 && texHeight == 1) in Display()
263 texWidth = TexWidth >> bias; in Display()
265 if (texWidth < 1) in Display()
266 texWidth = 1; in Display()
280 texWidth, texHeight); in Display()
292 glTexCoord2f(1, 0); glVertex2f(texWidth, 0); in Display()
293 glTexCoord2f(1, 1); glVertex2f(texWidth, texHeight); in Display()
/dports/graphics/mandelbulber/mandelbulber2-2.26/mandelbulber2/src/
H A Dshader_env_mapping.cpp47 double texWidth = data->textures.envmapTexture.Width(); in EnvMapping() local
54 double dtx = alphaTexture / (2.0 * M_PI) * texWidth + texWidth * 8.25; in EnvMapping()
56 dtx = fmod(dtx, texWidth); in EnvMapping()
/dports/games/hyperrogue/hyperrogue-12.0f/hyperroid/app/src/main/java/com/android/texample/
H A DTextureRegion.java17 …public TextureRegion(float texWidth, float texHeight, float x, float y, float width, float height)… in TextureRegion() argument
18 this.u1 = x / texWidth; // Calculate U1 in TextureRegion()
20 this.u2 = this.u1 + ( width / texWidth ); // Calculate U2 in TextureRegion()
/dports/x11-toolkits/mygui/mygui-MyGUI3.4.0/MyGUIEngine/src/
H A DMyGUI_ResourceTrueTypeFont.cpp566 int texWidth = 0;
578texWidth += createFaceGlyph(glyphIndex, codePoint, fontAscent, ftFace, ftLoadFlags, glyphHeightMap…
596 texWidth += (int)std::ceil(mSpaceWidth) - (int)std::ceil(spaceGlyphInfo->width);
645 texWidth = Bitwise::firstPO2From(texWidth);
651 while (texWidth > texHeight)
653 texWidth /= 2;
664 if (texHeight > texWidth * 2)
665 texWidth *= 2;
679 autoWrapGlyphPos(glyphWidth, texWidth, glyphHeight, texX, texY);
688 while (texHeight > texWidth * 2);
[all …]
/dports/x11-toolkits/mygui-ogre/mygui-MyGUI3.4.0/MyGUIEngine/src/
H A DMyGUI_ResourceTrueTypeFont.cpp566 int texWidth = 0;
578texWidth += createFaceGlyph(glyphIndex, codePoint, fontAscent, ftFace, ftLoadFlags, glyphHeightMap…
596 texWidth += (int)std::ceil(mSpaceWidth) - (int)std::ceil(spaceGlyphInfo->width);
645 texWidth = Bitwise::firstPO2From(texWidth);
651 while (texWidth > texHeight)
653 texWidth /= 2;
664 if (texHeight > texWidth * 2)
665 texWidth *= 2;
679 autoWrapGlyphPos(glyphWidth, texWidth, glyphHeight, texX, texY);
688 while (texHeight > texWidth * 2);
[all …]
/dports/x11-toolkits/mygui-opengl/mygui-MyGUI3.4.0/MyGUIEngine/src/
H A DMyGUI_ResourceTrueTypeFont.cpp566 int texWidth = 0;
578texWidth += createFaceGlyph(glyphIndex, codePoint, fontAscent, ftFace, ftLoadFlags, glyphHeightMap…
596 texWidth += (int)std::ceil(mSpaceWidth) - (int)std::ceil(spaceGlyphInfo->width);
645 texWidth = Bitwise::firstPO2From(texWidth);
651 while (texWidth > texHeight)
653 texWidth /= 2;
664 if (texHeight > texWidth * 2)
665 texWidth *= 2;
679 autoWrapGlyphPos(glyphWidth, texWidth, glyphHeight, texX, texY);
688 while (texHeight > texWidth * 2);
[all …]

1234567891011