From: Max Reitz <mreitz@redhat.com>
To: Gerd Hoffmann <kraxel@redhat.com>
Cc: qemu-devel@nongnu.org, Anthony Liguori <aliguori@amazon.com>
Subject: Re: [Qemu-devel] [PATCH v2 4/7] console-gl: add opengl rendering helper functions
Date: Tue, 20 Jan 2015 09:52:18 -0500 [thread overview]
Message-ID: <54BE6BA2.20906@redhat.com> (raw)
In-Reply-To: <1421765057.3606.46.camel@nilsson.home.kraxel.org>
On 2015-01-20 at 09:44, Gerd Hoffmann wrote:
> Hi,
>
>>>> This looks like a list for GL_TRIANGLES instead of GL_TRIANGLE_STRIP.
>>>> For GL_TRIANGLE_STRIP, you first define one whole triangle (by
>>>> specifying each of the three vertices) and after that, each vertex
>>>> results in a new triangle drawn (whose two other vertices are the two
>>>> vertices preceding the last one).
>>> Thanks for the nice description.
>>>
>>> So the trick to get it done with only four vertexes is to put the
>>> correct points (which are going to be shared by both triangles) into the
>>> middle. I've played around with it a bit without success (and before my
>>> new opengl book arrived), and this 6-point version worked ...
>> Hm, I did write a working solution in my reply, didn't I?
> Yep, was just trying to explain how I ended up with the 6 vertex
> version, not having fully figured how triangle strips are working.
I see.
> All fine now, I've changed it to use 4 vertexes version instead, and I
> _also_ understood why it is working as intended.
Great. :-)
> FYI: current code is at
> https://www.kraxel.org/cgit/qemu/log/?h=rebase/ui-sdl-next
Thanks!
Max
next prev parent reply other threads:[~2015-01-20 14:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-19 13:36 [Qemu-devel] [PATCH v2 0/7] sdl2: add opengl rendering support Gerd Hoffmann
2015-01-19 13:36 ` [Qemu-devel] [PATCH v2 1/7] configure: opengl overhaul Gerd Hoffmann
2015-01-19 14:43 ` Max Reitz
2015-01-19 13:36 ` [Qemu-devel] [PATCH v2 2/7] Allow the use of X11 from a non standard location Gerd Hoffmann
2015-01-19 14:50 ` Max Reitz
2015-01-19 13:36 ` [Qemu-devel] [PATCH v2 3/7] pixman: add a bunch of PIXMAN_BE_* defines for 32bpp Gerd Hoffmann
2015-01-19 14:54 ` Max Reitz
2015-01-19 13:36 ` [Qemu-devel] [PATCH v2 4/7] console-gl: add opengl rendering helper functions Gerd Hoffmann
2015-01-19 16:05 ` Max Reitz
2015-01-20 11:00 ` Gerd Hoffmann
2015-01-20 13:54 ` Max Reitz
2015-01-20 14:44 ` Gerd Hoffmann
2015-01-20 14:52 ` Max Reitz [this message]
2015-01-19 13:36 ` [Qemu-devel] [PATCH v2 5/7] console-gl: externalize shader programs Gerd Hoffmann
2015-01-19 16:15 ` Max Reitz
2015-01-19 13:36 ` [Qemu-devel] [PATCH v2 6/7] sdl2: move SDL_* includes to sdl2.h Gerd Hoffmann
2015-01-19 16:16 ` Max Reitz
2015-01-19 13:36 ` [Qemu-devel] [PATCH v2 7/7] sdl2: add support for display rendering using opengl Gerd Hoffmann
2015-01-19 16:22 ` Max Reitz
2015-01-20 11:13 ` Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=54BE6BA2.20906@redhat.com \
--to=mreitz@redhat.com \
--cc=aliguori@amazon.com \
--cc=kraxel@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).