/dports/games/billardgl/BillardGL-1.75/src/ |
H A D | createTexture.cpp | 14 GLfloat *texels = NULL; in createTexture() local 43 free(texels); in createTexture() 51 GLfloat *texels = NULL; in createTextureAlpha() local 81 free(texels); in createTextureAlpha() 89 GLfloat *texels = NULL; in createTextureText() local 117 free(texels); in createTextureText() 125 GLfloat *texels = NULL; in createTextureText2() local 154 free(texels); in createTextureText2() 162 GLfloat *texels = NULL; in createTextureAlpha2() local 192 free(texels); in createTextureAlpha2() [all …]
|
/dports/games/libretro-pcsx_rearmed/pcsx_rearmed-c2d67cd/plugins/gpu_neon/psx_gpu/ |
H A D | psx_gpu_4x.c | 41 vec_8x16u texels; in setup_sprite_16bpp_4x() local 61 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.low, texels.low); in setup_sprite_16bpp_4x() 62 block->texels = texels_wide; in setup_sprite_16bpp_4x() 72 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.high, texels.high); in setup_sprite_16bpp_4x() 99 vec_8x16u texels; in setup_sprite_16bpp_4x() local 122 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.low, texels.low); in setup_sprite_16bpp_4x() 133 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.high, texels.high); in setup_sprite_16bpp_4x() 152 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.low, texels.low); in setup_sprite_16bpp_4x() 163 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.high, texels.high); in setup_sprite_16bpp_4x() 183 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.low, texels.low); in setup_sprite_16bpp_4x() [all …]
|
/dports/games/kodi-addon-game.libretro.pcsx-rearmed/game.libretro.pcsx-rearmed-22.0.0.19-Matrix/depends/common/pcsx-rearmed/plugins/gpu_neon/psx_gpu/ |
H A D | psx_gpu_4x.c | 41 vec_8x16u texels; in setup_sprite_16bpp_4x() local 61 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.low, texels.low); in setup_sprite_16bpp_4x() 62 block->texels = texels_wide; in setup_sprite_16bpp_4x() 72 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.high, texels.high); in setup_sprite_16bpp_4x() 99 vec_8x16u texels; in setup_sprite_16bpp_4x() local 122 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.low, texels.low); in setup_sprite_16bpp_4x() 133 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.high, texels.high); in setup_sprite_16bpp_4x() 152 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.low, texels.low); in setup_sprite_16bpp_4x() 163 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.high, texels.high); in setup_sprite_16bpp_4x() 183 zip_4x32b(vector_cast(vec_4x32u, texels_wide), texels.low, texels.low); in setup_sprite_16bpp_4x() [all …]
|
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/tests/spec/ext_texture_integer/ |
H A D | getteximage-clamping.c | 290 uint32_t texels[][4], in report_fail() 315 texels[i][0], in report_fail() 316 texels[i][1], in report_fail() 317 texels[i][2], in report_fail() 318 texels[i][3]); in report_fail() 606 texels[i][1] = 0; in test_format() 607 texels[i][2] = 0; in test_format() 612 texels[i][0] = 0; in test_format() 616 texels[i][1] = 0; in test_format() 620 texels[i][2] = 0; in test_format() [all …]
|
H A D | texture-integer-glsl130.c | 229 for (i = 0; i < texels; i++) { in fill_array() 239 for (i = 0; i < texels; i++) { in fill_array() 249 for (i = 0; i < texels; i++) { in fill_array() 262 fill_array_rgb10(int comps, int texels, void *buf, int type, in fill_array_rgb10() argument 269 for (i = 0; i < texels; i++) { in fill_array_rgb10() 276 for (i = 0; i < texels; i++) { in fill_array_rgb10() 323 const int texels = TexWidth * TexHeight; in test_format() local 364 buf = malloc(texels * 4); in test_format() 365 fill_array_rgb10(comps, texels, buf, type, value); in test_format() 367 buf = malloc(comps * texels * info->BitsPerChannel / 8); in test_format() [all …]
|
/dports/devel/love5/love-0.5-0/src/opengl/ |
H A D | Image.cpp | 99 glTexCoord2f(texels[flipmap[flip][0]], texels[flipmap[flip][1]]); glVertex2i(0,0); in draw() 134 const float texels[] = { in draws() local 149 glTexCoord2f(texels[flipmap[flip][0]], texels[flipmap[flip][1]]); glVertex2f(0,0); in draws() 229 texels[0] = 0; in lock() 230 texels[1] = 0; in lock() 231 texels[2] = 0; in lock() 232 texels[3] = 1; in lock() 233 texels[4] = 1; in lock() 234 texels[5] = 1; in lock() 235 texels[6] = 1; in lock() [all …]
|
H A D | Animation.cpp | 58 f.texels[0] = xTex; f.texels[1] = yTex; in addFrame() 59 f.texels[2] = xTex; f.texels[3] = yTex+hTex; in addFrame() 60 f.texels[4] = xTex+wTex; f.texels[5] = yTex+hTex; in addFrame() 61 f.texels[6] = xTex+wTex; f.texels[7] = yTex; in addFrame() 202 …image->draw(f.vertices, f.texels, x, y, 0, 1, 1, -f.width/2.0f + center_x, -f.height/2.0f + center… in draw() 211 …image->draw(f.vertices, f.texels, x, y, angle, sx, sy, -f.width/2.0f + center_x, -f.height/2.0f + … in draw()
|
/dports/x11-toolkits/plib/plib-1.8.5/src/ssg/ |
H A D | ssgLoadTexture.cxx | 65 texels [ l ] = NULL ; in ssgMakeMipMaps() 67 texels [ 0 ] = image ; in ssgMakeMipMaps() 88 texels [ l2 ] = new GLubyte [ w2 * h2 * zsize ] ; in ssgMakeMipMaps() 110 texels [ l2 ] [ (y2 * w2 + x2) * zsize + c ] = a ; in ssgMakeMipMaps() 113 texels [ l2 ] [ (y2 * w2 + x2) * zsize + c ] = in ssgMakeMipMaps() 118 texels [ lev+1 ] = NULL ; in ssgMakeMipMaps() 142 delete [] texels [ 0 ] ; in ssgMakeMipMaps() 149 for ( int l = 0 ; texels [ l ] != NULL ; l++ ) in ssgMakeMipMaps() 150 texels [ l ] = texels [ l+1 ] ; in ssgMakeMipMaps() 161 for ( int i = 0 ; texels [ i ] != NULL ; i++ ) in ssgMakeMipMaps() [all …]
|
H A D | ssgLoadMDL_BGLTexture.cxx | 349 unsigned char *texels = new unsigned char[256 * 256 * 4]; in ssgLoadMDLTexture() local 355 texels[c++] = ssgFsTexPalette[b*4 ]; in ssgLoadMDLTexture() 356 texels[c++] = ssgFsTexPalette[b*4 + 1]; in ssgLoadMDLTexture() 357 texels[c++] = ssgFsTexPalette[b*4 + 2]; in ssgLoadMDLTexture() 358 texels[c++] = (b<index)?0:255; in ssgLoadMDLTexture() 372 return ssgMakeMipMaps ( texels, 256, 256, 4 ) ; in ssgLoadMDLTexture()
|
H A D | ssgLoadPCX.cxx | 158 UByte *texels = new UByte [size * 4]; // 4 bytes per texel in ssgLoadPCX() local 165 texels[c++] = buffer[b*3 ]; in ssgLoadPCX() 166 texels[c++] = buffer[b*3 + 1]; in ssgLoadPCX() 167 texels[c++] = buffer[b*3 + 2]; in ssgLoadPCX() 168 texels[c++] = a; in ssgLoadPCX() 176 return ssgMakeMipMaps ( texels, width, height, 4 ) ; in ssgLoadPCX()
|
H A D | ssgLoadTGA.cxx | 402 unsigned char * texels = new unsigned char[ bodySize ]; in ssgLoadTGA() 407 memcpy( texels, pData + DEF_targaHeaderLength + 6, bodySize ); in ssgLoadTGA() 415 memcpy( texels + loop, pData + bytesRead, 3 ); in ssgLoadTGA() 416 texels[ loop + 3 ] = 255; // Force alpha to max. in ssgLoadTGA() 423 unsigned char tempC = texels[ loop + 0 ]; in ssgLoadTGA() 424 texels[ loop + 0 ] = texels[ loop + 2 ]; in ssgLoadTGA() 425 texels[ loop + 2 ] = tempC; in ssgLoadTGA() 437 return ssgMakeMipMaps ( texels, width, height, 4) ; in ssgLoadTGA()
|
/dports/games/torcs/torcs-1.3.7/src/modules/graphic/ssggraph/ |
H A D | grtexture.cpp | 223 texels [l] = NULL; in grMakeMipMaps() 226 texels[0] = image; in grMakeMipMaps() 252 texels[l2] = new GLubyte[w2*h2*zsize]; in grMakeMipMaps() 261 int t1 = texels[l1][(y1*w1 + x1)*zsize + c]; in grMakeMipMaps() 277 texels[l2][(y2*w2 + x2)*zsize + c] = a; in grMakeMipMaps() 286 texels[lev + 1] = NULL; in grMakeMipMaps() 339 delete [] texels[0]; in grMakeMipMaps() 342 for (int l = 0; texels [l] != NULL; l++) { in grMakeMipMaps() 343 texels [l] = texels[l+1]; in grMakeMipMaps() 353 for (int i = 0; texels[i] != NULL; i++) { in grMakeMipMaps() [all …]
|
/dports/games/flightgear/flightgear-2020.3.11/3rdparty/fonts/ |
H A D | fntTXF.cxx | 39 texels [ l ] = NULL ; in tex_make_mip_maps() 41 texels [ 0 ] = image ; in tex_make_mip_maps() 62 texels [ l2 ] = new GLubyte [ w2 * h2 * zsize ] ; in tex_make_mip_maps() 73 int t1 = texels [ l1 ] [ (y1 * w1 + x1 ) * zsize + c ] ; in tex_make_mip_maps() 78 texels [ l2 ] [ (y2 * w2 + x2) * zsize + c ] = in tex_make_mip_maps() 83 texels [ lev+1 ] = NULL ; in tex_make_mip_maps() 113 delete [] texels [ 0 ] ; in tex_make_mip_maps() 117 for ( int l = 0 ; texels [ l ] != NULL ; l++ ) in tex_make_mip_maps() 118 texels [ l ] = texels [ l+1 ] ; in tex_make_mip_maps() 129 for ( int i = 0 ; texels [ i ] != NULL ; i++ ) in tex_make_mip_maps() [all …]
|
/dports/x11-toolkits/plib/plib-1.8.5/src/fnt/ |
H A D | fntTXF.cxx | 61 texels [ l ] = NULL ; in tex_make_mip_maps() 63 texels [ 0 ] = image ; in tex_make_mip_maps() 84 texels [ l2 ] = new GLubyte [ w2 * h2 * zsize ] ; in tex_make_mip_maps() 95 int t1 = texels [ l1 ] [ (y1 * w1 + x1 ) * zsize + c ] ; in tex_make_mip_maps() 100 texels [ l2 ] [ (y2 * w2 + x2) * zsize + c ] = in tex_make_mip_maps() 105 texels [ lev+1 ] = NULL ; in tex_make_mip_maps() 135 delete [] texels [ 0 ] ; in tex_make_mip_maps() 139 for ( int l = 0 ; texels [ l ] != NULL ; l++ ) in tex_make_mip_maps() 140 texels [ l ] = texels [ l+1 ] ; in tex_make_mip_maps() 151 for ( int i = 0 ; texels [ i ] != NULL ; i++ ) in tex_make_mip_maps() [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/gfx/skia/skia/src/gpu/ |
H A D | GrGpu.cpp | 128 for (int i = 0; i < texels.count(); ++i) { 129 if (!texels[i].fPixels) { 137 const SkTArray<GrMipLevel>& texels) { 169 tex = this->onCreateTexture(desc, budgeted, texels); 176 if (!texels.empty()) { 177 if (texels[0].fPixels) { 184 if (isRT && texels.empty()) { 374 if (!texels[currentMipLevel].fPixels ) { 382 this->didWriteToSurface(surface, &rect, texels.count()); 396 SkSTArray<1, GrMipLevel> texels; [all …]
|
H A D | GrTextureProvider.cpp | 37 const GrMipLevel* texels, int mipLevelCount) { in createMipMappedTexture() argument 43 if (mipLevelCount && !texels) { in createMipMappedTexture() 47 if (!texels[i].fPixels) { in createMipMappedTexture() 63 texels[0].fPixels, texels[0].fRowBytes)) { in createMipMappedTexture() 76 texelsShallowCopy.push_back(texels[i]); in createMipMappedTexture() 84 GrMipLevel* texels = nullptr; in createTexture() local 89 texels = &tempTexels; in createTexture() 92 return this->createMipMappedTexture(desc, budgeted, texels, levelCount); in createTexture()
|
/dports/graphics/blender/blender-2.91.0/source/blender/gpu/intern/ |
H A D | gpu_material.c | 446 float(*texels)[4]; in compute_sss_translucence_kernel() local 448 *output = (float *)texels; in compute_sss_translucence_kernel() 476 add_v3_v3(texels[i], profile); in compute_sss_translucence_kernel() 485 texels[j][0] /= (texels[0][0] > 0.0f) ? texels[0][0] : 1.0f; in compute_sss_translucence_kernel() 486 texels[j][1] /= (texels[0][1] > 0.0f) ? texels[0][1] : 1.0f; in compute_sss_translucence_kernel() 487 texels[j][2] /= (texels[0][2] > 0.0f) ? texels[0][2] : 1.0f; in compute_sss_translucence_kernel() 491 texels[0][0] = (texels[0][0] > 0.0f) ? 1.0f : 0.0f; in compute_sss_translucence_kernel() 492 texels[0][1] = (texels[0][1] > 0.0f) ? 1.0f : 0.0f; in compute_sss_translucence_kernel() 493 texels[0][2] = (texels[0][2] > 0.0f) ? 1.0f : 0.0f; in compute_sss_translucence_kernel() 496 mul_v3_fl(texels[resolution - 2], 0.25f); in compute_sss_translucence_kernel() [all …]
|
/dports/games/crrcsim/crrcsim-0.9.13/src/mod_video/ |
H A D | crrc_sky.cpp | 936 texels->add(texel); in repaint() 949 texels->add(texel); in repaint() 959 delete texels; in repaint() 960 texels = NULL; in repaint() 996 texels->add(texel); in repaint() 1011 delete texels; in repaint() 1012 texels = NULL; in repaint() 1063 delete texels; in repaint() 1064 texels = NULL; in repaint() 1114 delete texels; in repaint() [all …]
|
/dports/graphics/lib3ds/lib3ds-1.3.0/lib3ds/ |
H A D | mesh.c | 325 ASSERT(mesh->texels); in lib3ds_mesh_new_texel_list() 329 mesh->texels=0; in lib3ds_mesh_new_texel_list() 335 mesh->texels=texels; in lib3ds_mesh_new_texel_list() 355 ASSERT(mesh->texels); in lib3ds_mesh_free_texel_list() 358 mesh->texels=0; in lib3ds_mesh_free_texel_list() 361 ASSERT(!mesh->texels); in lib3ds_mesh_free_texel_list() 647 ASSERT((!mesh->texels) || (mesh->points==mesh->texels)); in lib3ds_mesh_read() 667 ASSERT((!mesh->texels) || (mesh->flags==mesh->texels)); in lib3ds_mesh_read() 706 unsigned texels; in lib3ds_mesh_read() local 710 if (texels) { in lib3ds_mesh_read() [all …]
|
/dports/cad/meshlab/meshlab-Meshlab-2020.05/src/external/lib3ds-1.3.0/lib3ds/ |
H A D | mesh.c | 325 ASSERT(mesh->texels); in lib3ds_mesh_new_texel_list() 329 mesh->texels=0; in lib3ds_mesh_new_texel_list() 335 mesh->texels=texels; in lib3ds_mesh_new_texel_list() 355 ASSERT(mesh->texels); in lib3ds_mesh_free_texel_list() 358 mesh->texels=0; in lib3ds_mesh_free_texel_list() 361 ASSERT(!mesh->texels); in lib3ds_mesh_free_texel_list() 647 ASSERT((!mesh->texels) || (mesh->points==mesh->texels)); in lib3ds_mesh_read() 667 ASSERT((!mesh->texels) || (mesh->flags==mesh->texels)); in lib3ds_mesh_read() 706 unsigned texels; in lib3ds_mesh_read() local 710 if (texels) { in lib3ds_mesh_read() [all …]
|
/dports/www/chromium-legacy/chromium-88.0.4324.182/third_party/skia/tools/fiddle/ |
H A D | fiddle_main.cpp | 161 std::unique_ptr<GrMipLevel[]> texels(new GrMipLevel[mipLevelCount]); in setup_backend_objects() local 163 texels[0].fPixels = pixmap->addr(); in setup_backend_objects() 164 texels[0].fRowBytes = pixmap->rowBytes(); in setup_backend_objects() 167 texels[i].fPixels = nullptr; in setup_backend_objects() 168 texels[i].fRowBytes = 0; in setup_backend_objects() 173 SkBudgeted::kNo, GrProtected::kNo, texels.get(), mipLevelCount); in setup_backend_objects() 218 std::unique_ptr<GrMipLevel[]> texels(new GrMipLevel[mipLevelCount]); in setup_backend_objects() local 220 texels[0].fPixels = data.get(); in setup_backend_objects() 221 texels[0].fRowBytes = offscreenDims.width()*sizeof(uint32_t); in setup_backend_objects() 224 texels[i].fPixels = nullptr; in setup_backend_objects() [all …]
|
/dports/www/qt5-webengine/qtwebengine-everywhere-src-5.15.2/src/3rdparty/chromium/third_party/skia/tools/fiddle/ |
H A D | fiddle_main.cpp | 161 std::unique_ptr<GrMipLevel[]> texels(new GrMipLevel[mipLevelCount]); in setup_backend_objects() local 163 texels[0].fPixels = pixmap->addr(); in setup_backend_objects() 164 texels[0].fRowBytes = pixmap->rowBytes(); in setup_backend_objects() 167 texels[i].fPixels = nullptr; in setup_backend_objects() 168 texels[i].fRowBytes = 0; in setup_backend_objects() 173 SkBudgeted::kNo, GrProtected::kNo, texels.get(), mipLevelCount); in setup_backend_objects() 218 std::unique_ptr<GrMipLevel[]> texels(new GrMipLevel[mipLevelCount]); in setup_backend_objects() local 220 texels[0].fPixels = data.get(); in setup_backend_objects() 221 texels[0].fRowBytes = offscreenDims.width()*sizeof(uint32_t); in setup_backend_objects() 224 texels[i].fPixels = nullptr; in setup_backend_objects() [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/gfx/wrench/src/ |
H A D | blob.rs | 36 let mut texels = Vec::with_capacity((descriptor.width * descriptor.height * 4) as usize); in render_blob() localVariable 63 texels.push(color.b * checker + tc); in render_blob() 64 texels.push(color.g * checker + tc); in render_blob() 65 texels.push(color.r * checker + tc); in render_blob() 66 texels.push(color.a * checker + tc); in render_blob() 69 texels.push(color.a * checker + tc); in render_blob() 81 data: texels, in render_blob()
|
/dports/graphics/blender/blender-2.91.0/source/blender/draw/engines/eevee/ |
H A D | eevee_lut_gen.c | 53 float *texels = MEM_mallocN(sizeof(float[2]) * w * h, "lut"); in create_ggx_lut_texture() local 55 tex = DRW_texture_create_2d(w, h, GPU_RG16F, DRW_TEX_FILTER, (float *)texels); in create_ggx_lut_texture() 78 MEM_freeN(texels); in create_ggx_lut_texture() 104 float *texels = MEM_mallocN(sizeof(float[2]) * w * h, "lut"); in create_ggx_refraction_lut_texture() local 106 tex = DRW_texture_create_2d(w, h, GPU_R16F, DRW_TEX_FILTER, (float *)texels); in create_ggx_refraction_lut_texture() 167 MEM_freeN(texels); in create_ggx_refraction_lut_texture()
|
/dports/graphics/piglit/piglit-136a7f5fa0703603be1ffb338abe4865e76a8058/tests/spec/ext_packed_depth_stencil/ |
H A D | texsubimage.c | 96 GLubyte texels[2 * 2 * 4]; in check_texels() local 103 texels); in check_texels() 105 for (i = 0; i < sizeof texels; i++) in check_texels() 106 if (texels[i] != i) in check_texels()
|