For optimal performance in pyglet, you want to use batched rendering: http://pyglet.readthedocs.io/en/latest/programming_guide/graphics.html#batched-rendering Groups are a way to combine like-things withing the context of a batch.
There are things such as the OrderedGroup, which allow you to ensure that things draw in a certain order (for example, a HUD or text input box is drawn above everything else). On Monday, April 24, 2017 at 10:35:34 PM UTC+9, Samson Liu wrote: > > Thank you so much for replying! > I am using everything you said except for groups since I haven't quite > firgure out what it does. > > On Monday, April 24, 2017 at 3:43:32 AM UTC-4, Benjamin Moran wrote: >> >> Hi Samson, >> >> There is an example on bitbucket, which you can find at: >> examples/text_input.py >> https://bitbucket.org/pyglet/pyglet/src/examples/text_input >> <https://bitbucket.org/pyglet/pyglet/src/738617edac87a5e313414b790db412763983524e/examples/text_input.py?at=default&fileviewer=file-view-default> >> You should be able to get some ideas from the TextWidget class in this >> example. >> >> Are you using the pyglet graphics module, and batches/groups in your >> project? >> >> On Monday, April 24, 2017 at 3:10:09 AM UTC+9, Samson Liu wrote: >>> >>> Hello there >>> >>> Is possible to have text field input on pyglet? Like an input bar at the >>> bottom of the screen while the 3d is running? >>> If it's possible, how is it usually setup? >>> >>> Thanks so much! >>> >> -- You received this message because you are subscribed to the Google Groups "pyglet-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/pyglet-users. For more options, visit https://groups.google.com/d/optout.
