<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body><span class="vcard"><a class="email" href="mailto:idr@freedesktop.org" title="Ian Romanick <idr@freedesktop.org>"> <span class="fn">Ian Romanick</span></a>
</span> changed
<a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - glCallLists/glBitmap calls slow on Intel implementation of Mesa drivers"
href="https://bugs.freedesktop.org/show_bug.cgi?id=61412">bug 61412</a>
<br>
<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>What</th>
<th>Removed</th>
<th>Added</th>
</tr>
<tr>
<td style="text-align:right;">Status</td>
<td>NEW
</td>
<td>RESOLVED
</td>
</tr>
<tr>
<td style="text-align:right;">Resolution</td>
<td>---
</td>
<td>NOTOURBUG
</td>
</tr></table>
<p>
<div>
<b><a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - glCallLists/glBitmap calls slow on Intel implementation of Mesa drivers"
href="https://bugs.freedesktop.org/show_bug.cgi?id=61412#c9">Comment # 9</a>
on <a class="bz_bug_link
bz_status_RESOLVED bz_closed"
title="RESOLVED NOTOURBUG - glCallLists/glBitmap calls slow on Intel implementation of Mesa drivers"
href="https://bugs.freedesktop.org/show_bug.cgi?id=61412">bug 61412</a>
from <span class="vcard"><a class="email" href="mailto:idr@freedesktop.org" title="Ian Romanick <idr@freedesktop.org>"> <span class="fn">Ian Romanick</span></a>
</span></b>
<pre>(In reply to <a href="show_bug.cgi?id=61412#c8">comment #8</a>)
<span class="quote">> (In reply to <a href="show_bug.cgi?id=61412#c7">comment #7</a>)
> > Can you elaborate on what you mean by this? I believe that Eric's proposal
> > was for you to change the way the application is rendering. I'm not sure
> > how this has any affect on end-users troubleshooting things.
> Seriously I feel like I'm a canary, repeating the same tune over and over.
> I can't rely on a texture based font stored in the game directory, or even
> the truetype/freetype fonts (except maybe Ubuntu/fixed on Linux and Arial on
> Windows) because I am catering for people who do weird stuff to their
> computers and files go missing mysteriously. So instead I rely on something
> I know is there and if its not, then their system is completely buggered.
>
> > I'm assuming that you have fonts stored on disk as bitmap (1-bit per pixel)
> > images, and that's why you're mentioning filesystems. You can use this data
> > as a texture by using the GL_PIXEL_MAP_I_TO_A table. The data is sent to
> > glTexImage2D like:
> >
> > glTexImage2D(GL_TEXTURE_2D, 0, width, height, 0,
> > GL_ALPHA4, GL_COLOR_INDEX, GL_BITMAP, pixels);
> >
> > Configure the GL 1.2 texture combiners and blend mode to blend the font the
> > way you want:
> >
> > glTexEnvi(GL_TEXTURE_2D, GL_TEXTURE_ENV_MODE, GL_REPLACE);
> > glBlendFunc(GL_SRC_ALPHA, GL_ZERO);
> > glBlendEquation(GL_FUNC_ADD);
> >
> > Then draw a single quad in the color you want the font to be:
> >
> > glColor3f(1.0f, 0.0f, 0.0f);
> > glBegin(GL_QUADS); // or your favorite way to draw
> > glTexCoord2f(...); // location of the character in the atlas
> > glVertex2f(...);
> > ...
> > glEnd();
> >
> > You could even build those calls into display lists (as you currently do
> > with the glBitmap calls) to keep the changes isolated from the reset of your
> > code.
> >
> > Excluding the call to glBlendEquation, that will work on every OpenGL
> > implementation since GL 1.1, and it will probably be faster than glBitmap on
> > every GL implementation since the data doesn't need to be re-uploaded for
> > each drawing operation.
> I know how to do all of this, again I do NOT have a font texture file, I
> rely on system installed fonts because if they aren't there, then the system
> is buggered to hell.</span >
You're repeating my point, and that's confusing. It doesn't matter how your
fonts are stored. You can send *exactly the same bits* into OpenGL as a
texture or a bitmap.</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>