Tag: sdl

iOS Sync 3 Hello SDL

现场安装和维修时遇到的所有问题,请访问可可瓶中的可可豆。 在可可粉中安装了可信赖的产品,因此在可可中获得了可信赖的建筑。 Para nuestro demo tenemos que abrir el archivo Podfile que se encuentra en laraízde la carpeta que descargamos。 Este archivo contiene el nombre“ HelloSDL”或laversión“ 4.5.5”在存储库中使用了笛卡尔。 终端,空地上的建筑和设施,“ pod安装”。 出售类似的东西,类似“在Pod安装完成!”。 Xcode y seleccionamos laopciónde Lo siguiente que haremosseráabrir“ Abrir otro proyecto…”。 Despuésabrimos la carpeta donde guardamos el proyecto y abrimos el archivo conextensiónxcworkspace ,在任何地方都可以使用HelloSDL.xcworkspace 。 […]

SDL2_ttf不会在ios上运行

所以情况是 – 我下载了最新的SDL2_ttf库,打开了包含在包中的XCode-IOS项目,没有任何问题地构build它,并连接到我的项目。 一切编译和运行,但在开始我的程序退出输出消息: apinames 0.1: extract FreeType API names from header files this program is used to extract the list of public FreeType API functions. It receives the list of header files as argument and generates a sorted list of unique identifiers usage: apinames header1 [options] [header2 …] options: – : parse the content […]

将SDL的视图embeddedUIViewController

我在iOS上看到的一些SDL演示,所有渲染发生在SDL_Window而不是UIWindow 。 但是,由于大多数iOS应用程序是基于单个UIWindowbuild模的。 我想将iOS与SDL集成,并将SDL的窗口(或SDL的视图)embedded到UIViewController视图中。 这是如何完成的? 我已经在这里发布我的问题,也看到下面的评论 michelleC说明以下,但我不知道如何编码michelleC提到的。 我无权在论坛上发帖/回复。 我很容易掌握sdl窗口,并添加视图控制器,或获得封装sdl视图,并将其添加到视图控制器。 到目前为止,我所做的是修改SDL_uikitviewcontroller.m以重新定位/调整SDL_Window视图的大小: – (void)viewDidLayoutSubviews { CGRect newFrame = self.view.frame; newFrame.size.height = newFrame.size.height – 100; newFrame.size.width = newFrame.size.width – 50; newFrame.origin.x = 25.0f; self.view.frame = newFrame; SDLUIKitDelegate *appDelegate = [SDLUIKitDelegate sharedAppDelegate]; [appDelegate embedView:self.view]; } 然后我把这个视图传递给SDL_uikitappdelegate.m中的一个函数,在这里它将SDL_Window的视图作为UIViewController的子视图。 但是,我遇到的错误。 – (void) embedView:(UIView*)vw { [vw removeFromSuperview]; CGRect frame = vw.frame; frame.origin.x = […]