Dustin Carlino
|
188b2fd372
|
adding in some image buttons for the main menu. no highlighting yet.
wrong bounding boxes.
|
2019-11-25 19:31:39 -08:00 |
|
Dustin Carlino
|
dfd036300b
|
refactor: make text_dims return ScreenDims. also, update the logo image
|
2019-11-25 17:38:37 -08:00 |
|
Dustin Carlino
|
573edbd13e
|
adding the logo to the title screen and filling out some credits
|
2019-11-24 19:09:07 -08:00 |
|
Dustin Carlino
|
1440a8630b
|
prototyping a text button, using it for a title screen
|
2019-11-24 15:23:28 -08:00 |
|
Dustin Carlino
|
a2ea691fa3
|
fix the 16 texture limit on mac properly, by using texture arrays for icons
|
2019-11-24 07:38:32 -08:00 |
|
Dustin Carlino
|
e7bda09978
|
simple perf boosts: avoiding some unnecessary GPU uploads every frame
|
2019-11-22 14:06:44 -08:00 |
|
Dustin Carlino
|
db86a24cda
|
draw button text in the OSD (not owned by ezgui), not as a mouse tooltip
|
2019-11-01 11:45:02 -07:00 |
|
Dustin Carlino
|
a94e210c22
|
changing speed controls to be a panel of manually arranged buttons. not
done, but functionality is cutover. fix details later.
|
2019-10-30 15:01:11 -07:00 |
|
Dustin Carlino
|
7faeafd998
|
nice hatching for construction lanes, hackily encoded
|
2019-10-29 17:19:36 -07:00 |
|
Dustin Carlino
|
d757b45bff
|
manually workaround y inversion with stretched textures by modifying the
images
|
2019-10-29 16:36:19 -07:00 |
|
Dustin Carlino
|
7d7bfef5ea
|
filter out parking garages with 0 spots. render water on top of parks,
to workaround issue of the green lake park polygon covering everything
up
|
2019-10-26 11:37:10 -07:00 |
|
Dustin Carlino
|
cb4720946c
|
experiment with texturing cars, with some fun UV coordinates. looks half
reasonable when it works. breaks on duplicate points, not sure what's
wrong yet
|
2019-10-24 14:07:03 -07:00 |
|
Dustin Carlino
|
17e02ebdf0
|
adding in support for rotating textures, except missing y-inversion
|
2019-10-23 16:30:23 -07:00 |
|
Dustin Carlino
|
d133dfd152
|
experimentally use textures for pedestrians. add support for stretching
texture coordinates
|
2019-10-23 15:46:00 -07:00 |
|
Dustin Carlino
|
430b1245c4
|
working on a new traffic signal scroller. disabled. decent start.
|
2019-10-13 18:44:19 -07:00 |
|
Dustin Carlino
|
5304aa6ecf
|
trying out permanent sidebar in map_editor. no more tooltips
|
2019-10-13 15:31:17 -07:00 |
|
Dustin Carlino
|
d82263978b
|
simpler context menu impl. finally delete the old one
|
2019-10-12 14:53:27 -07:00 |
|
Dustin Carlino
|
0ea138aa02
|
adding show/hide functionality back to modalmenu, but WAY more cleanly
|
2019-10-11 15:00:08 -07:00 |
|
Dustin Carlino
|
da0b880484
|
place mouse tooltips away from screen edge, just like context menus
|
2019-10-09 11:21:04 -07:00 |
|
Dustin Carlino
|
5f9cf2accd
|
display basic labels on trip stats
|
2019-10-01 19:28:03 -07:00 |
|
Dustin Carlino
|
672899c20f
|
better synthetic drawing: lanes offset properly (still buggy...), draw center line
|
2019-09-12 10:25:34 -07:00 |
|
Dustin Carlino
|
224461fcdc
|
plumb hatching bit in the style vertex attrib, not this awkward stateful uniform value
|
2019-09-11 11:06:57 -07:00 |
|
Dustin Carlino
|
7eae18b71a
|
tiling all the textures seamlessly, instead of stretching
|
2019-09-11 10:46:03 -07:00 |
|
Dustin Carlino
|
ac131ebedf
|
moving some things around ezgui; i can never remember where to find some structs
|
2019-09-11 09:03:59 -07:00 |
|
Dustin Carlino
|
9867619c9c
|
generalize ezgui Color to also cleanly represent textured things
|
2019-09-10 16:41:35 -07:00 |
|
Dustin Carlino
|
9a624397e0
|
supporting up to 10 textures
|
2019-09-10 15:44:07 -07:00 |
|
Dustin Carlino
|
fdd770088d
|
very hacky, minimal impl of texturing water
|
2019-09-10 15:21:58 -07:00 |
|
Dustin Carlino
|
e6bf997bee
|
simplify glium uniforms storage
|
2019-09-10 14:08:05 -07:00 |
|
Dustin Carlino
|
56ea90c787
|
draw map-space text with proper z-ordering
|
2019-08-15 10:30:17 -07:00 |
|
Dustin Carlino
|
caddf69dcc
|
cache unzoomed agent geometry when possible
|
2019-08-14 14:44:43 -07:00 |
|
Dustin Carlino
|
c50830c4c0
|
add an extra scaling factor to map-space text, so we can draw in a reasonable font size, then squish down without losing quality
|
2019-08-13 11:24:04 -07:00 |
|
Dustin Carlino
|
5dc92e6eb8
|
strong steps towards real map-space text. not quite working yet, but
this shouldn't break anything in the meantime.
|
2019-08-12 15:38:57 -07:00 |
|
Dustin Carlino
|
6738de2488
|
draw text beneath Sliders, not in the ModalMenu
|
2019-06-20 14:48:32 -07:00 |
|
Dustin Carlino
|
110140f391
|
union make_arrow polygon
|
2019-05-28 18:05:10 -07:00 |
|
Dustin Carlino
|
788cd237a8
|
upload traffic signal Drawable once per state change
|
2019-05-23 11:31:28 -07:00 |
|
Dustin Carlino
|
de51b1c154
|
simplify some render/ code by using GeomBatch
|
2019-05-17 13:14:58 -07:00 |
|
Dustin Carlino
|
db04553626
|
batch traffic signal drawing
|
2019-05-16 17:55:26 -07:00 |
|
Dustin Carlino
|
f4620c1951
|
add basic hatching support to fragment shader. use it to visualize map
edits when zoomed in
|
2019-05-12 17:59:12 -07:00 |
|
Dustin Carlino
|
73f32854be
|
fix up other ezgui apps, run clippy
|
2019-05-04 17:25:05 -07:00 |
|
Dustin Carlino
|
951e2f37ce
|
flush text to display immediately, not at the end. prerequisite to drawing scaled text better
|
2019-05-04 15:36:40 -07:00 |
|
Dustin Carlino
|
3db78d1ddd
|
hacky way of showing context menu hotkeys in OSD
|
2019-05-03 14:21:43 -07:00 |
|
Dustin Carlino
|
4b4e6f17a0
|
start a really basic OSD
|
2019-05-02 12:38:12 -05:00 |
|
Dustin Carlino
|
2f6cc5fe4d
|
remove vestiges of top menu being in the way
|
2019-04-28 20:10:00 -07:00 |
|
Dustin Carlino
|
6c247d376c
|
clean up ezgui draw() API by putting screencap and naming_hint inside GfxCtx
|
2019-04-23 15:42:15 -07:00 |
|
Dustin Carlino
|
e627930757
|
draw text in map-space, except drawing zoomed-in text is extremely slow!
|
2019-04-23 14:12:30 -07:00 |
|
Dustin Carlino
|
320c91faf7
|
bam, variable font size
|
2019-04-22 20:17:18 -07:00 |
|
Dustin Carlino
|
008b2f9de5
|
preps for variable font size
|
2019-04-22 20:02:18 -07:00 |
|
Dustin Carlino
|
4eece7bae7
|
borrow text to draw, stop cloning everywhere
|
2019-04-22 13:29:24 -07:00 |
|
Dustin Carlino
|
0772e6e3c8
|
make_arrow only for PolyLine, simplify and improve the result in most
cases
|
2019-04-12 15:06:44 -07:00 |
|
Dustin Carlino
|
a9afc3efdd
|
improve arrow API, at least -- creating them from a polyline is fine
|
2019-04-11 17:39:07 -07:00 |
|
Dustin Carlino
|
1848387ef0
|
starting to organize warnings in a much more reasonable way.
|
2019-02-20 10:08:02 -08:00 |
|
Dustin Carlino
|
6a573dfbd0
|
use better glium buffer types
|
2019-02-11 14:08:43 -08:00 |
|
Dustin Carlino
|
40d3c6b0ca
|
count all Prerender uploads, not just the ones that happen in draw()
|
2019-02-05 15:02:10 -08:00 |
|
Dustin Carlino
|
d08751fb64
|
preupload pedestrian geometry
|
2019-02-02 13:44:27 -08:00 |
|
Dustin Carlino
|
61d1d2fe83
|
revamp handling of onscreen stuff. no more callback plumbing, and can
plumb prerender successfully into dynamic stuff. just can't do as much
work directly in DrawMap.
|
2019-02-02 12:32:07 -08:00 |
|
Dustin Carlino
|
5181a3db34
|
starting to move some text drawing code out of canvas
|
2019-01-31 23:40:15 -08:00 |
|
Dustin Carlino
|
64573ea0ea
|
own canvas inside of ezgui, not in applications. lots of refactoring
unlocked now...
|
2019-01-31 22:33:36 -08:00 |
|
Dustin Carlino
|
7519fdf584
|
using strong Distance types in many more places
|
2019-01-30 15:54:54 -08:00 |
|
Dustin Carlino
|
8afe83162b
|
collapsing all lane markings into a single Drawable
|
2019-01-25 11:21:46 -08:00 |
|
Dustin Carlino
|
25bc02fb32
|
using prerender for lanes... a good start.
|
2019-01-25 10:38:40 -08:00 |
|
Dustin Carlino
|
623e578665
|
inverting the ezgui/GUI control to plumb Prerender
|
2019-01-25 10:19:58 -08:00 |
|
Dustin Carlino
|
6af551bc95
|
plumbing colorscheme early to support prerendering in DrawMap construction...
|
2019-01-25 09:46:19 -08:00 |
|
Dustin Carlino
|
4882e98933
|
start a way to upload once, draw many times
|
2019-01-25 09:09:55 -08:00 |
|
Dustin Carlino
|
b21852875e
|
batch lots more easy things... down from 760 calls for a scene to 158
|
2019-01-25 08:39:45 -08:00 |
|
Dustin Carlino
|
a065c63ad7
|
batching sidewalk lines. fix the very silly batching bug
|
2019-01-25 08:10:09 -08:00 |
|
Dustin Carlino
|
8cc652514d
|
making a simple way to batch drawn stuff. not using it yet, it's buggy!
|
2019-01-24 18:04:54 -08:00 |
|
Dustin Carlino
|
c7eaa2cf55
|
exposing some basic drawing performance stats...
|
2019-01-24 16:21:56 -08:00 |
|
Dustin Carlino
|
590ab4bccb
|
just moving GfxCtx to its own module
|
2019-01-24 16:10:18 -08:00 |
|