/trunk/client/Game2/FullscreenTest.h – HoverRace

root/trunk/client/Game2/FullscreenTest.h @ 724

Revision 724, 1.6 KB (checked in by zoogie, 14 months ago)

#116: Display a bit more info about the fullscreen test:

  • What resolution is being tested.
  • How many seconds remain until the test ends.
  • Property svn:eol-style set to native
Line 
1
2// FullscreenTest.h
3// Header for the fullscreen test.
4//
5// Copyright (c) 2009 Michael Imamura.
6//
7// Licensed under GrokkSoft HoverRace SourceCode License v1.0(the "License");
8// you may not use this file except in compliance with the License.
9//
10// A copy of the license should have been attached to the package from which
11// you have taken this file. If you can not find the license you can not use
12// this file.
13//
14//
15// The author makes no representations about the suitability of
16// this software for any purpose.  It is provided "as is" "AS IS",
17// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
18// implied.
19//
20// See the License for the specific language governing permissions
21// and limitations under the License.
22
23#pragma once
24
25namespace HoverRace {
26    namespace VideoServices {
27        struct Font;
28        class MultipartText;
29        class NumericGlyphs;
30        class StaticText;
31    }
32}
33
34class MR_2DViewPort;
35class MR_VideoBuffer;
36
37namespace HoverRace {
38namespace Client {
39
40class FullscreenTest {
41
42    public:
43        FullscreenTest(int oldX, int oldY, const std::string &oldMonitor);
44        ~FullscreenTest();
45
46    public:
47        bool ShouldActivateTest(HWND parent) const;
48        bool TickTimer();
49
50    private:
51        static int ScaleFont(int i, int resY);
52        void UpdateSubheading(int resY);
53        void InitWidgets(int resX, int resY);
54    public:
55        void Render(MR_VideoBuffer *dest);
56
57    private:
58        int oldX, oldY;
59        std::string oldMonitor;
60
61        MR_2DViewPort *viewport;
62        bool widgetsInitialized;
63        VideoServices::StaticText *heading;
64        VideoServices::StaticText *subheading;
65
66        int timeRemaining;
67};
68
69}  // namespace Client
70}  // namespace HoverRace
Note: See TracBrowser for help on using the browser.