cocos2d-x  3.5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
CCGLView.h File Reference
#include "base/ccTypes.h"
#include "base/CCEventTouch.h"
#include <vector>
#include <windows.h>

Classes

struct  GLContextAttrs
 opengl Context Attrs. More...
 
class  GLView
 By GLView you can operate the frame information of EGL view through some function. More...
 

Namespaces

 cocos2d
 

Typedefs

typedef void * id

Enumerations

enum  ResolutionPolicy {
  EXACT_FIT, NO_BORDER, SHOW_ALL, FIXED_HEIGHT,
  FIXED_WIDTH, UNKNOWN
}
 There are some Resolution Policy for Adapt to the screen. More...
 

Typedef Documentation

typedef void* id
var id
local id

Enumeration Type Documentation

enum ResolutionPolicy
strong

There are some Resolution Policy for Adapt to the screen.

Enumerator
EXACT_FIT 

The entire application is visible in the specified area without trying to preserve the original aspect ratio.

Distortion can occur, and the application may appear stretched or compressed.

NO_BORDER 

The entire application fills the specified area, without distortion but possibly with some cropping, while maintaining the original aspect ratio of the application.

SHOW_ALL 

The entire application is visible in the specified area without distortion while maintaining the original aspect ratio of the application.

Borders can appear on two sides of the application.

FIXED_HEIGHT 

The application takes the height of the design resolution size and modifies the width of the internal canvas so that it fits the aspect ratio of the device.

No distortion will occur however you must make sure your application works on different aspect ratios.

FIXED_WIDTH 

The application takes the width of the design resolution size and modifies the height of the internal canvas so that it fits the aspect ratio of the device.

No distortion will occur however you must make sure your application works on different aspect ratios.

UNKNOWN 
var ResolutionPolicy
strong

There are some Resolution Policy for Adapt to the screen.

Enumerator
EXACT_FIT 

The entire application is visible in the specified area without trying to preserve the original aspect ratio.

Distortion can occur, and the application may appear stretched or compressed.

NO_BORDER 

The entire application fills the specified area, without distortion but possibly with some cropping, while maintaining the original aspect ratio of the application.

SHOW_ALL 

The entire application is visible in the specified area without distortion while maintaining the original aspect ratio of the application.

Borders can appear on two sides of the application.

FIXED_HEIGHT 

The application takes the height of the design resolution size and modifies the width of the internal canvas so that it fits the aspect ratio of the device.

No distortion will occur however you must make sure your application works on different aspect ratios.

FIXED_WIDTH 

The application takes the width of the design resolution size and modifies the height of the internal canvas so that it fits the aspect ratio of the device.

No distortion will occur however you must make sure your application works on different aspect ratios.

UNKNOWN 
local ResolutionPolicy
strong

There are some Resolution Policy for Adapt to the screen.

Enumerator
EXACT_FIT 

The entire application is visible in the specified area without trying to preserve the original aspect ratio.

Distortion can occur, and the application may appear stretched or compressed.

NO_BORDER 

The entire application fills the specified area, without distortion but possibly with some cropping, while maintaining the original aspect ratio of the application.

SHOW_ALL 

The entire application is visible in the specified area without distortion while maintaining the original aspect ratio of the application.

Borders can appear on two sides of the application.

FIXED_HEIGHT 

The application takes the height of the design resolution size and modifies the width of the internal canvas so that it fits the aspect ratio of the device.

No distortion will occur however you must make sure your application works on different aspect ratios.

FIXED_WIDTH 

The application takes the width of the design resolution size and modifies the height of the internal canvas so that it fits the aspect ratio of the device.

No distortion will occur however you must make sure your application works on different aspect ratios.

UNKNOWN