1
General / Scale 9 Image in SFML?
« on: November 12, 2014, 04:50:32 am »
like CCScale9Sprite in cocos2d-x.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
It's a retina screen, right? So I guess that the logical resolution is 320x568, which seems to match your result. So no problem here.OK, thank you, i need real px
Note that the iOS port doesn't provide explicit support for retina screens yet (ie. rendering at physical resolution).
You mean it is too big?yes, too big, this is 100px ...
Otherwise, something that a lot of people do wrong: The position of the circle is the left-upper corner of the bounding rect and not the circle's center. Set the origin if you need to change this.
And please next time post in the Help/Graphics forum, not in General Discussions.
In file included from /Users/zoujiaqing/Projects/SFML/src/SFML/Graphics/Font.cpp:29:
In file included from src/SFML/Graphics/GLCheck.hpp:32:
In file included from src/SFML/Graphics/GLExtensions.hpp:77:
extlibs/headers/GL/glew.h:1163:10: fatal error: 'OpenGL/glu.h' file not found
#include <OpenGL/glu.h>
^
1 error generated.
#import "ViewController.h"
@interface ViewController ()
@end
@implementation ViewController
- (void)viewDidLoad {
[super viewDidLoad];
// here into code ?
}
...
cmake . -DSFML_BUILD_EXAMPLES=TRUE -DSFML_OS_IOS=TRUE
make