Example #1
0
 int screen_height() { return _channel->getPixelViewport().h / _channel->getViewport().h; }
Example #2
0
 float screen_pixel_aspect_ratio()
 {
     float pixels_per_unit_x = _channel->getPixelViewport().w / (_canvas_width * _channel->getViewport().w);
     float pixels_per_unit_y = _channel->getPixelViewport().h / (_canvas_height * _channel->getViewport().h);
     return pixels_per_unit_y / pixels_per_unit_x;
 }
Example #3
0
 int screen_width() { return _channel->getPixelViewport().w / _channel->getViewport().w; }