Eugene Sandulenko
e604c97607
GRAPHICS: MACGUI: Made MacDrawPixel bpp-aware
2020-08-15 16:09:20 +02:00
Eugene Sandulenko
e5e82d4cf6
DIRECTOR: Copy over PixelFormat from the WM for simpler access
2020-08-14 10:47:33 +02:00
Eugene Sandulenko
88c46aefe3
DIRECTOR: Initial code for 32bpp rendering
2020-08-14 01:10:56 +02:00
Nathanael Gentry
2a90acd0eb
DIRECTOR: Offload transition handling to WM
2020-08-10 11:17:16 -04:00
Nathanael Gentry
6a69c3a81f
DIRECTOR: Draw windowed transitions in right area
2020-08-10 11:15:34 -04:00
djsrv
9c537a8744
DIRECTOR: Rename Stage to more general Window
...
The stage and windows are the same type of thing, but the stage only
refers to one particular window.
2020-08-04 23:54:09 -04:00
Nathanael Gentry
a7426c2872
GRAPHICS: MACGUI: Eliminate window composition surface
...
Now there is just the composeSurface from the widget. This fixes a bug where the
inner window contents would be blitted with transparency and also eliminates a
redundant copying. Now the border and inner surfaces are composed together on demand.
2020-07-21 14:48:27 -04:00
Nathanael Gentry
b5114fc87f
DIRECTOR: Fix surface memory leak in transitions
2020-07-13 13:29:54 -04:00
Nathanael Gentry
5fadd94bea
DIRECTOR: Properly clip transition rectangle
2020-07-06 23:40:09 -04:00
djsrv
d8725510b6
GRAPHICS: MACGUI: Don't draw border over contents
2020-07-06 13:12:55 -04:00
Nathanael Gentry
533bab342b
DIRECTOR: Fix dissolve transition calculation
...
Without this, rnd is never 0 and so the transition is never drawn around
point (0, 0).
2020-07-03 09:41:01 -04:00
Nathanael Gentry
4caea51387
DIRECTOR: Always finish drawing transition on quit event
...
This prevents an incomplete transition from messing up the display when, for
instance, you click to skip to the end of a transition.
2020-07-03 00:50:13 -04:00
Nathanael Gentry
8c68e8c73a
DIRECTOR: Implement changed area transitions
...
No new transitions should be broken, but transitions that were broken
before (#9 , 10, c. 30-36, 47-48) have not been fixed. All transitions (even
broken ones) should render only in the changed area, however.
2020-07-02 23:47:02 -04:00
Eugene Sandulenko
5186f7194b
DIRECTOR: Reduce header dependency
2020-07-01 17:49:48 +02:00
Eugene Sandulenko
1aa1fe2802
DIRECTOR: Furhter decrease of header dependency
2020-07-01 17:49:48 +02:00
djsrv
5ae6c34074
DIRECTOR: Separate Movie and Cast from Score
2020-07-01 10:50:31 -04:00
Nathanael Gentry
d04934a54f
DIRECTOR: Move rendering to a Stage class
...
This commit introduces several changes to the rendering pipeline.
- Rather than having a window for each score that is played, there is a Stage
in g_director that is only cleared when the upcoming stage has a different
size. This permits transitions still clean transitions between movies.
- Rather than relying upon general surface blitting functions, there is
progress toward a custom blitter than makes working with inks much easier. A
pixelwise function, inkDrawPixel, has been introduced.
- The mask-based approach to incremental rendering has been abandoned, as it
caused performance issues and strange rendering bugs. Now the renderer
operates on a traditional list of dirty rects that must be redrawn.
- QuickDraw shapes are more closely integrated with the renderer, and they do
not require a temporary surface to draw.
2020-06-30 12:38:46 -04:00
Nathanael Gentry
4aaed579e1
DIRECTOR: Fix segfault in tests
...
I made the same omission last time I worked on the transitions...
2020-06-26 00:23:05 -04:00
Nathanael Gentry
f82c3bfa32
DIRECTOR: Remove score backSurfaces
...
These are replaced with more descriptive temporary surfaces that are only active
when a transition is being rendered.
Currently, transitions between movies are temporarily disabled as well. This
will be fixed soon, once there is a window for the stage that exists
independently of the score.
2020-06-26 00:18:22 -04:00
Nathanael Gentry
ba1650ac45
DIRECTOR: Don't crash on null surfaces
2020-06-24 12:49:00 -04:00
djsrv
759c53c868
DIRECTOR: LINGO: Call perFrameHook with arguments
2020-06-06 18:34:06 +02:00
Nathanael Gentry
57b69cf2c0
DIRECTOR: Move transitions to the score
2020-06-01 21:36:09 +02:00
Eugene Sandulenko
3f0dd38dbe
DIRECTOR: Speed up transitions when fast mode is requested
2020-05-20 13:16:05 +02:00
Eugene Sandulenko
50b9d9a64c
DIRECTOR: Fix another MSVC warning
2020-05-10 13:38:20 +02:00
Eugene Sandulenko
627c901f8f
DIRECTOR: Fix MSVC warnings
2020-05-10 13:38:20 +02:00
Eugene Sandulenko
37f2275f62
GRAPHICS: MACGUI: Draw over optional mask in macDrawPixel()
2020-04-23 22:06:20 +02:00
Eugene Sandulenko
8f44cb6acf
DIRECTOR: Fix code analysis issues. Some are embarrassing.
2020-04-06 21:09:13 +02:00
Eugene Sandulenko
9d98fa0f13
DIRECTOR: Fix warning
2020-04-02 14:14:12 +02:00
Eugene Sandulenko
358b4f1789
DIRECTOR: Fix warnings
2020-04-02 14:13:27 +02:00
Eugene Sandulenko
3975bca256
DIRECTOR: Added stub for changed area transitions
2020-04-02 13:58:04 +02:00
Eugene Sandulenko
bb62c305c3
DIRECTOR: Cleanup of transitions code
2020-04-02 13:58:04 +02:00
Eugene Sandulenko
5419f5a26a
DIRECTOR: Clean up TransitionType enum
2020-04-01 22:29:40 +02:00
Eugene Sandulenko
f8127a731a
DIRECTOR: Implement blind transitions, that completes the transitions code, yay!
2020-04-01 22:29:40 +02:00
Eugene Sandulenko
8da6b6b227
DIRECTOR: Implement kTransAlgoZoom transitions
2020-04-01 22:29:40 +02:00
Eugene Sandulenko
d91793e87e
DIRECTOR: Implement kTransTypeCheckerboard transition
2020-04-01 20:40:52 +02:00
Eugene Sandulenko
f4d464dd2b
DIRECTOR: Implemented strips transitions
2020-04-01 18:27:19 +02:00
Eugene Sandulenko
7157def629
DIRECTOR: Remove redundant check and fix spelling mistake in transitions code
2020-04-01 18:27:19 +02:00
Eugene Sandulenko
fd7fd933cb
DIRECTOR: Fix boxy transitions
2020-04-01 18:27:19 +02:00
Eugene Sandulenko
c13b985cea
DIRECTOR: Implement boxy dissolve transitions
2020-04-01 01:52:55 +02:00
Eugene Sandulenko
676ed69deb
DIRECTOR: Implement kTransRandomRows and RandomColumns transitions
2020-04-01 01:32:59 +02:00
Eugene Sandulenko
c3ba0ce32e
DIRECTOR: Tidy up transitions code
2020-03-31 19:13:37 +02:00
Eugene Sandulenko
78dd8aa778
DIRECTOR: Implement kTransAlgoPush transitions
2020-03-31 19:13:37 +02:00
Eugene Sandulenko
00d1569031
DIRECTOR: Implement kTransAlgoEdgesIn algo transitions
2020-03-31 19:13:37 +02:00
Eugene Sandulenko
72bea549b6
DIRECTOR: Implement kTransAlgoWipe algo transitions
2020-03-31 19:13:37 +02:00
Eugene Sandulenko
1ec516729e
DIRECTOR: Text formatting and added safeguard checks to transitions
2020-03-31 01:11:04 +02:00
Eugene Sandulenko
9cff7e0354
DIRECTOR: Implemented rest of kTransAlgoReveal transitions
2020-03-31 01:11:04 +02:00
Eugene Sandulenko
d55836e5cd
DIRECTOR: Implement kTransRevealUp
2020-03-31 01:11:03 +02:00
Eugene Sandulenko
e6d78fd059
DIRECTOR: Small optimization to transition rendering
2020-03-30 23:37:21 +02:00
Eugene Sandulenko
4ac9f9739e
DIRECTOR: Implement kTransDissolvePatterns
2020-03-30 23:37:21 +02:00
Eugene Sandulenko
da60021f66
DIRECTOR: Fix kTransDissolveBits transition for lower bitness
2020-03-30 10:21:19 +02:00