Home
last modified time | relevance | path

Searched refs:texw (Results 1 – 25 of 145) sorted by relevance

123456

/dports/graphics/kmscube/kmscube-485b38/
H A Dcube-tex.c216 static const uint32_t texw = 512, texh = 512; variable
233 map = gbm_bo_map(bo, 0, 0, texw, texh, GBM_BO_TRANSFER_WRITE, &stride, &map_data); in get_fd_rgba()
236 memcpy(&map[stride * i], &src[texw * 4 * i], texw * 4); in get_fd_rgba()
266 bo = gbm_bo_create(gl.gbm->dev, texw, texh, GBM_FORMAT_R8, GBM_BO_USE_LINEAR); in get_fd_y()
271 memcpy(&map[stride * i], &src[texw * i], texw); in get_fd_y()
297 uint8_t *map, *src = &((uint8_t *)raw_512x512_nv12)[texw * texh]; in get_fd_uv()
306 memcpy(&map[stride * i], &src[texw * i], texw); in get_fd_uv()
332 EGL_WIDTH, texw, in init_tex_rgba()
379 EGL_WIDTH, texw, in init_tex_nv12_2img()
390 EGL_WIDTH, texw/2, in init_tex_nv12_2img()
[all …]
/dports/games/spring/spring_98.0/rts/Map/SM3/terrain/
H A DQuadRenderData.cpp211 size_t texw = 1; in InitializeNodeNormalMap() local
214 while (texw < w) texw *= 2; in InitializeNodeNormalMap()
219 if (rd->normalMap && (rd->normalMapW == w) && (rd->normalMapTexWidth == texw)) { in InitializeNodeNormalMap()
233 rd->normalMapTexWidth = texw; in InitializeNodeNormalMap()
237 uchar* normals = new uchar[texw*texw*3]; in InitializeNodeNormalMap()
242 memcpy(&normals [3 * y * texw], src, 3 * w); in InitializeNodeNormalMap()
246 glTexImage2D(GL_TEXTURE_2D, 0, 3, texw,texw,0, GL_RGB, GL_UNSIGNED_BYTE, normals); in InitializeNodeNormalMap()
/dports/deskutils/treesheets/treesheets-1.0.2/lobster/src/
H A Dfontrenderer.cpp61 int texw = MaxTextureSize(); in CacheChars() local
64 int space_on_line = texw - margin, lines = 1; in CacheChars()
76 space_on_line = texw - margin; in CacheChars()
89 uchar *image = new uchar[texh * texw * 4]; in CacheChars()
90 memset(image, 0, texh * texw * 4); in CacheChars()
102 if (advance > texw - x) { in CacheChars()
110 (y - bglyph->top + row) * texw) * 4; in CacheChars()
140 tex = CreateTexture(image, int2(texw, texh).data(), TF_CLAMP | TF_NOMIPMAP); in CacheChars()
/dports/audio/komposter/komposter-f75eeb7/
H A Dfont.c70 int err, i, j, c, rc, f, texw, texh; in font_init() local
120 texw=tpow2(slot->bitmap.width); in font_init()
122 font_ucoord[f][c]=(float)(slot->bitmap.width)/(float)(texw); in font_init()
126 font_bitmap[f][c]=calloc(texw*texh, sizeof(GLuint)); in font_init()
131 font_bitmap[f][c][ ( slot->bitmap.rows-(j+1) )*texw + i] = p; in font_init()
139 …glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, texw, texh, 0, GL_RGBA, GL_UNSIGNED_BYTE, font_bitmap[f][c… in font_init()
/dports/games/redeclipse16/base-1.6.0/src/engine/
H A Drendertarget.h5 int texw, texh, vieww, viewh; member
19 …rendertarget() : texw(0), texh(0), vieww(0), viewh(0), colorfmt(GL_FALSE), depthfmt(GL_FALSE), ren… in rendertarget()
49 texw = texh = 0;
67 createtexture(blurtex, texw, texh, NULL, 3, 1, colorfmt); in setupblur()
78 glRenderbufferStorage_(GL_RENDERBUFFER, depthfmt, texw, texh); in setupblur()
126 texw = w; in setup()
173 float wscale = vieww/float(texw), hscale = viewh/float(texh); in rendertiles()
236 setblurshader(i, i ? texh : texw, blursize, blurweights, bluroffsets); in blur()
269 if(vieww < texw || viewh < texh) in scissorrender()
289 if(vieww < texw || viewh < texh) in scissorblur()
[all …]
/dports/games/sauerbraten/sauerbraten/src/engine/
H A Drendertarget.h5 int texw, texh, vieww, viewh; member
20 …rendertarget() : texw(0), texh(0), vieww(0), viewh(0), colorfmt(GL_FALSE), depthfmt(GL_FALSE), ren… in rendertarget()
50 texw = texh = 0;
68 createtexture(blurtex, texw, texh, NULL, 3, 1, colorfmt); in setupblur()
79 glRenderbufferStorage_(GL_RENDERBUFFER, depthfmt, texw, texh); in setupblur()
127 texw = w; in setup()
174 float wscale = vieww/float(texw), hscale = viewh/float(texh); in rendertiles()
240 else setblurshader(i, i ? texh : texw, blursize, blurweights, bluroffsets); in blur()
273 if(vieww < texw || viewh < texh) in scissorrender()
293 if(vieww < texw || viewh < texh) in scissorblur()
[all …]
/dports/devel/bullet/bullet3-3.21/examples/ThirdPartyLibs/Gwen/Skins/
H A DTexturing.h25 float texw = texture->width; in Init() local
28 uv[0] = x / texw; in Init()
30 uv[2] = (x + w) / texw; in Init()
81 float texw = texture->width; in SetRect() local
87 rects[iNum].uv[0] = x / texw; in SetRect()
90 rects[iNum].uv[2] = (x + w) / texw; in SetRect()
/dports/devel/py-bullet3/bullet3-3.21/examples/ThirdPartyLibs/Gwen/Skins/
H A DTexturing.h25 float texw = texture->width; in Init() local
28 uv[0] = x / texw; in Init()
30 uv[2] = (x + w) / texw; in Init()
81 float texw = texture->width; in SetRect() local
87 rects[iNum].uv[0] = x / texw; in SetRect()
90 rects[iNum].uv[2] = (x + w) / texw; in SetRect()
/dports/games/bloodfrontier/bloodfrontier/src/engine/
H A Drendertarget.h5 int texw, texh, vieww, viewh; member
19 …rendertarget() : texw(0), texh(0), vieww(0), viewh(0), colorfmt(GL_FALSE), depthfmt(GL_FALSE), tar… in rendertarget()
49 texw = texh = 0;
68 createtexture(blurtex, texw, texh, NULL, 3, 1, colorfmt, target); in setupblur()
79 glRenderbufferStorage_(GL_RENDERBUFFER_EXT, depthfmt, texw, texh); in setupblur()
136 texw = w; in setup()
187 wscale /= texw; in rendertiles()
261 …setblurshader(i, target == GL_TEXTURE_RECTANGLE_ARB ? 1 : (i ? texh : texw), blursize, blurweights… in blur()
299 if(vieww < texw || viewh < texh) in scissorrender()
319 if(vieww < texw || viewh < texh) in scissorblur()
[all …]
/dports/games/fs2open/fs2open.github.com-release_21_4_1/lib/libRocket/Samples/basic/sdl2/src/
H A DRenderInterfaceSDL2.cpp54 float texw, texh; in RenderGeometry() local
61 SDL_GL_BindTexture(sdl_texture, &texw, &texh); in RenderGeometry()
68 TexCoords[i].x = vertices[i].tex_coord.x * texw; in RenderGeometry()
/dports/games/foobillard/foobillard-3.0a/src/
H A Dtextobj.c88 int texw,texh, width,height; in create_string_quad() local
95 getStringPixmapFT( str, fontname, h, &texdata, &texw, &texh, &width, &height ); in create_string_quad()
118 gluBuild2DMipmaps(GL_TEXTURE_2D, 1, texw, texh, GL_LUMINANCE, in create_string_quad()
141 glTexCoord2f((double)width/(double)texw,0); in create_string_quad()
146 glTexCoord2f((double)width/(double)texw,(double)height/(double)texh); in create_string_quad()
/dports/emulators/mess/mame-mame0226/3rdparty/SDL2/src/render/opengles/
H A DSDL_render_gles.c90 static int GLES_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *tex…
139 GLfloat texw; member
518 data->texw = (GLfloat) texture->w / texture_w; in GLES_CreateTexture()
960 minu *= texturedata->texw; in GLES_RenderCopy()
962 maxu *= texturedata->texw; in GLES_RenderCopy()
1051 minu *= texturedata->texw; in GLES_RenderCopyEx()
1053 maxu *= texturedata->texw; in GLES_RenderCopyEx()
1185 static int GLES_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *tex… in GLES_BindTexture() argument
1194 if (texw) { in GLES_BindTexture()
1195 *texw = (float)texturedata->texw; in GLES_BindTexture()
/dports/emulators/mame/mame-mame0226/3rdparty/SDL2/src/render/opengles/
H A DSDL_render_gles.c90 static int GLES_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *tex…
139 GLfloat texw; member
518 data->texw = (GLfloat) texture->w / texture_w; in GLES_CreateTexture()
960 minu *= texturedata->texw; in GLES_RenderCopy()
962 maxu *= texturedata->texw; in GLES_RenderCopy()
1051 minu *= texturedata->texw; in GLES_RenderCopyEx()
1053 maxu *= texturedata->texw; in GLES_RenderCopyEx()
1185 static int GLES_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *tex… in GLES_BindTexture() argument
1194 if (texw) { in GLES_BindTexture()
1195 *texw = (float)texturedata->texw; in GLES_BindTexture()
/dports/games/assaultcube/AssaultCube_v1.2.0.2/source/src/
H A Drendergl.cpp309 int texw = 512; in blendbox() local
310 int texh = texw; in blendbox()
311 int cols = (int)((x2-x1)/texw+1); in blendbox()
329 if((i+1)*texw>x2-x1) in blendbox()
331 xboxcut = (float)(((i+1)*texw)-(x2-x1)); in blendbox()
332 xtexcut = (float)(((i+1)*texw)-(x2-x1))/texw; in blendbox()
336 glTexCoord2f(0, 0); glVertex2f((float)x1+texw*i, (float)y1+texh*j); in blendbox()
337 … glTexCoord2f(1-xtexcut, 0); glVertex2f(x1+texw*(i+1)-xboxcut, (float)y1+texh*j); in blendbox()
338 … glTexCoord2f(0, 1-ytexcut); glVertex2f((float)x1+texw*i, y1+texh*(j+1)-yboxcut); in blendbox()
339 …glTexCoord2f(1-xtexcut, 1-ytexcut); glVertex2f(x1+texw*(i+1)-xboxcut, (float)y1+texh*(j+1)-yboxcut… in blendbox()
/dports/graphics/urho3d/Urho3D-1.7.1/Source/ThirdParty/SDL/src/render/opengles/
H A DSDL_render_gles.c90 static int GLES_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *tex…
139 GLfloat texw; member
518 data->texw = (GLfloat) texture->w / texture_w; in GLES_CreateTexture()
960 minu *= texturedata->texw; in GLES_RenderCopy()
962 maxu *= texturedata->texw; in GLES_RenderCopy()
1051 minu *= texturedata->texw; in GLES_RenderCopyEx()
1053 maxu *= texturedata->texw; in GLES_RenderCopyEx()
1185 static int GLES_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *tex… in GLES_BindTexture() argument
1194 if (texw) { in GLES_BindTexture()
1195 *texw = (float)texturedata->texw; in GLES_BindTexture()
/dports/graphics/milton/milton-1.9.1/third_party/SDL2-2.0.8/src/render/opengles/
H A DSDL_render_gles.c91 static int GLES_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *tex…
142 GLfloat texw; member
601 data->texw = (GLfloat) texture->w / texture_w; in GLES_CreateTexture()
1034 minu *= texturedata->texw; in GLES_RenderCopy()
1036 maxu *= texturedata->texw; in GLES_RenderCopy()
1125 minu *= texturedata->texw; in GLES_RenderCopyEx()
1127 maxu *= texturedata->texw; in GLES_RenderCopyEx()
1259 static int GLES_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *tex… in GLES_BindTexture() argument
1268 if (texw) { in GLES_BindTexture()
1269 *texw = (float)texturedata->texw; in GLES_BindTexture()
/dports/x11-wm/plasma5-kwin/kwin-5.23.5/src/effects/lookingglass/
H A Dlookingglass.cpp93 int texw = screenSize.width(); in loadData() local
97 const int levels = std::log2(qMin(texw, texh)) + 1; in loadData()
98 m_texture = new GLTexture(GL_RGBA8, texw, texh, levels); in loadData()
/dports/emulators/mess/mame-mame0226/3rdparty/SDL2/src/render/opengl/
H A DSDL_render_gl.c90 static int GL_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *texh);
160 GLfloat texw; member
722 data->texw = 1.0f; in GL_CreateTexture()
728 data->texw = (GLfloat) texture_w; in GL_CreateTexture()
734 data->texw = (GLfloat) (texture->w) / texture_w; in GL_CreateTexture()
1324 minu *= texturedata->texw; in GL_RenderCopy()
1326 maxu *= texturedata->texw; in GL_RenderCopy()
1387 minu *= texturedata->texw; in GL_RenderCopyEx()
1389 maxu *= texturedata->texw; in GL_RenderCopyEx()
1549 GL_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *texh) in GL_BindTexture() argument
[all …]
/dports/emulators/mame/mame-mame0226/3rdparty/SDL2/src/render/opengl/
H A DSDL_render_gl.c90 static int GL_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *texh);
160 GLfloat texw; member
722 data->texw = 1.0f; in GL_CreateTexture()
728 data->texw = (GLfloat) texture_w; in GL_CreateTexture()
734 data->texw = (GLfloat) (texture->w) / texture_w; in GL_CreateTexture()
1324 minu *= texturedata->texw; in GL_RenderCopy()
1326 maxu *= texturedata->texw; in GL_RenderCopy()
1387 minu *= texturedata->texw; in GL_RenderCopyEx()
1389 maxu *= texturedata->texw; in GL_RenderCopyEx()
1549 GL_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *texh) in GL_BindTexture() argument
[all …]
/dports/graphics/urho3d/Urho3D-1.7.1/Source/ThirdParty/SDL/src/render/opengl/
H A DSDL_render_gl.c90 static int GL_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *texh);
160 GLfloat texw; member
722 data->texw = 1.0f; in GL_CreateTexture()
728 data->texw = (GLfloat) texture_w; in GL_CreateTexture()
734 data->texw = (GLfloat) (texture->w) / texture_w; in GL_CreateTexture()
1324 minu *= texturedata->texw; in GL_RenderCopy()
1326 maxu *= texturedata->texw; in GL_RenderCopy()
1387 minu *= texturedata->texw; in GL_RenderCopyEx()
1389 maxu *= texturedata->texw; in GL_RenderCopyEx()
1549 GL_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *texh) in GL_BindTexture() argument
[all …]
/dports/games/etracer/etr-0.8.1/src/
H A Dtextures.cpp258 float texw = 22.0 / 256.0; in DrawNumChr() local
259 float texleft = idx * texw; in DrawNumChr()
260 float texright = (idx + 1) * texw; in DrawNumChr()
/dports/graphics/milton/milton-1.9.1/third_party/SDL2-2.0.8/src/render/opengl/
H A DSDL_render_gl.c91 static int GL_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *texh);
161 GLfloat texw; member
788 data->texw = 1.0f; in GL_CreateTexture()
794 data->texw = (GLfloat) texture_w; in GL_CreateTexture()
800 data->texw = (GLfloat) (texture->w) / texture_w; in GL_CreateTexture()
1409 minu *= texturedata->texw; in GL_RenderCopy()
1411 maxu *= texturedata->texw; in GL_RenderCopy()
1472 minu *= texturedata->texw; in GL_RenderCopyEx()
1474 maxu *= texturedata->texw; in GL_RenderCopyEx()
1642 GL_BindTexture (SDL_Renderer * renderer, SDL_Texture *texture, float *texw, float *texh) in GL_BindTexture() argument
[all …]
/dports/multimedia/mplayer/mplayer-export-2021-12-29/libvo/
H A Dvo_gl.c258 static void texSize(int w, int h, int *texw, int *texh) { in texSize() argument
260 *texw = w; *texh = h; in texSize()
262 *texw = 32; in texSize()
263 while (*texw < w) in texSize()
264 *texw *= 2; in texSize()
269 if (mesa_buffer) *texw = (*texw + 63) & ~63; in texSize()
270 else if (ati_hack) *texw = (*texw + 511) & ~511; in texSize()
289 params.chrom_texw = params.texw >> xs; in update_yuvconv()
/dports/multimedia/mencoder/mplayer-export-2021-12-29/libvo/
H A Dvo_gl.c258 static void texSize(int w, int h, int *texw, int *texh) { in texSize() argument
260 *texw = w; *texh = h; in texSize()
262 *texw = 32; in texSize()
263 while (*texw < w) in texSize()
264 *texw *= 2; in texSize()
269 if (mesa_buffer) *texw = (*texw + 63) & ~63; in texSize()
270 else if (ati_hack) *texw = (*texw + 511) & ~511; in texSize()
289 params.chrom_texw = params.texw >> xs; in update_yuvconv()
/dports/x11/xscreensaver/xscreensaver-5.44/hacks/glx/
H A Dphotopile.c612 GLfloat texw = w / frame->tw; in draw_image() local
621 glTexCoord2f (texx - texw, texy + texh); glVertex3f (-w, -h, z1); in draw_image()
622 glTexCoord2f (texx + texw, texy + texh); glVertex3f ( w, -h, z1); in draw_image()
623 glTexCoord2f (texx + texw, texy - texh); glVertex3f ( w, h, z1); in draw_image()
624 glTexCoord2f (texx - texw, texy - texh); glVertex3f (-w, h, z1); in draw_image()

123456