Use configured resolution for login/outgame/ingame
[ryzomcore.git] / ryzom / client / src / rosace_functions.cpp
blobc04e87340e54f6211fa9d7213c3f362326afb477
1 // Ryzom - MMORPG Framework <http://dev.ryzom.com/projects/ryzom/>
2 // Copyright (C) 2010 Winch Gate Property Limited
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU Affero General Public License as
6 // published by the Free Software Foundation, either version 3 of the
7 // License, or (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU Affero General Public License for more details.
14 // You should have received a copy of the GNU Affero General Public License
15 // along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include "stdpch.h"
22 /////////////
23 // INCLUDE //
24 /////////////
25 // Client.
26 #include "rosace_functions.h"
27 #include "functions.h"
30 ///////////
31 // USING //
32 ///////////
35 ////////////
36 // EXTERN //
37 ////////////
40 ////////////
41 // GLOBAL //
42 ////////////
43 // Rosace.
44 CRosace rosace;
47 ///////////////
48 // FUNCTIONS //
49 ///////////////
50 //-----------------------------------------------
51 // initRosace :
52 // Initialize Rosace.
53 //-----------------------------------------------
54 void initRosace()
56 CRosacePage page1(4);
57 CRosacePage page2(2);
58 page1[0].texture(string("burnedtreeflower2.tga"));
59 page1[1].texture(string("burnedtreeflower2.tga"));
60 page1[2].texture(string("burnedtreeflower2.tga"));
61 page1[3].texture(string("burnedtreeflower2.tga"));
63 page2[0].texture(string("bush-flower.tga"));
64 page2[1].texture(string("bush-flower.tga"));
66 page1[0].callback(0);
67 page1[1].callback(0);
68 page1[2].callback(0);
69 page1[3].callback(0);
71 page2[0].callback(0);
72 page2[1].callback(0);
74 CRosaceContext context1(2);
75 context1[0] = page1;
76 context1[1] = page2;
78 rosace.add("1", context1);
79 rosace.select("1");
80 }// initRosace //