当前位置:网站首页>Cocos2dx screen adaptation
Cocos2dx screen adaptation
2022-07-05 04:56:00 【Meteor spot】
Size screenSize = glview->getFrameSize();
if (screenSize.width < screenSize.height)
{
glview->setFrameSize(screenSize.height, screenSize.width);
screenSize = glview->getFrameSize();
}
if (screenSize.width / screenSize.height >= 1280.f / 720.f) {
glview->setDesignResolutionSize(1280, 720, ResolutionPolicy::FIXED_HEIGHT);
}
else{
glview->setDesignResolutionSize(1280, 720, ResolutionPolicy::SHOW_ALL);
}
边栏推荐
- Common technologies of unity
- Download the details and sequence of the original data access from the ENA database in EBI
- 用 Jmeter 工具做个小型压力测试
- How much do you know about 3DMAX rendering skills and HDRI light sources? Dry goods sharing
- [groovy] closure (Introduction to closure class closure | this, owner, delegate member assignment and source code analysis)
- Redis has four methods for checking big keys, which are necessary for optimization
- AutoCAD - continuous annotation
- Basic knowledge points of dictionary
- 【Leetcode】1352. 最后 K 个数的乘积
- Group counting notes (1) - check code, original complement multiplication and division calculation, floating point calculation
猜你喜欢

【Leetcode】1352. Product of the last K numbers

AutoCAD - scaling

Autocad-- Real Time zoom

Minor spanning tree
![[groovy] closure (closure parameter list rule | default parameter list | do not receive parameters | receive custom parameters)](/img/36/c4206a95c007e41df628d99e06ba18.jpg)
[groovy] closure (closure parameter list rule | default parameter list | do not receive parameters | receive custom parameters)

【acwing】528. cheese

2022 thinking of mathematical modeling C problem of American college students / analysis of 2022 American competition C problem

Pdf to DWG in CAD

【acwing】240. food chain

Thematic information | carbon, carbon neutrality, low carbon, carbon emissions - 22.1.9
随机推荐
Rip notes [rip three timers, the role of horizontal segmentation, rip automatic summary, and the role of network]
Unity synergy
2022 thinking of mathematical modeling a problem of American college students / analysis of 2022 American competition a problem
AutoCAD - isometric annotation
Flink cluster configuration
[groovy] closure (closure call is associated with call method | call () method is defined in interface | call () method is defined in class | code example)
Recherche de mots pour leetcode (solution rétrospective)
质量体系建设之路的分分合合
xss注入
Interface joint commissioning test script optimization V5.0 (end)
Fluent objects and lists
3dsmax scanning function point connection drawing connection line
Download the details and sequence of the original data access from the ENA database in EBI
[ideas] 2021 may day mathematical modeling competition / May Day mathematical modeling ideas + references + codes
MySQL audit log Archive
Basic knowledge points of dictionary
【Leetcode】1352. Product of the last K numbers
Autocad-- Real Time zoom
Looking at Chinese science and technology from the Winter Olympics: what is the mystery of the high-speed camera that the whole people thank?
Number theoretic function and its summation to be updated