Skip to content

Commit

Permalink
drivers/glrend/video: remove VIDEOI_BrRectToUVs()
Browse files Browse the repository at this point in the history
  • Loading branch information
vs49688 committed Oct 5, 2024
1 parent b3d977e commit 57f2829
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 11 deletions.
2 changes: 0 additions & 2 deletions drivers/glrend/drv_ip.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ br_boolean VIDEOI_CompileBRenderShader(HVIDEO hVideo, const char *vertPath, cons

void VIDEOI_BrRectToGL(const br_pixelmap *pm, br_rectangle *r);

void VIDEOI_BrRectToUVs(const br_pixelmap *pm, const br_rectangle *r, float *x0, float *y0, float *x1, float *y1);

br_matrix4 *VIDEOI_D3DtoGLProjection(br_matrix4 *m);

const br_pixelmap_gl_fmt *DeviceGLGetFormatDetails(br_uint_8 type);
Expand Down
9 changes: 0 additions & 9 deletions drivers/glrend/video.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,15 +220,6 @@ void VIDEOI_BrRectToGL(const br_pixelmap *pm, br_rectangle *r)
r->y = pm->height - r->h - r->y;
}

void VIDEOI_BrRectToUVs(const br_pixelmap *pm, const br_rectangle *r, float *x0, float *y0, float *x1, float *y1)
{
*x0 = (float)r->x / (float)pm->width;
*y0 = (float)r->y / (float)pm->height;

*x1 = (float)(r->x + r->w) / (float)pm->width;
*y1 = (float)(r->y + r->h) / (float)pm->height;
}

br_matrix4 *VIDEOI_D3DtoGLProjection(br_matrix4 *m)
{
// Change the signs
Expand Down

0 comments on commit 57f2829

Please sign in to comment.