hybrid_app

Hybrid Switch/PC Example Application using GLFW
授权协议 Zlib License
开发语言 C/C++
所属分类 程序开发、 图形/图像处理
软件类型 开源软件
地区 不详
投 递 者 周正真
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

Hybrid Switch/PC Example Application

This is an example OpenGL project using GLFW and GLM that builds and runs on both Switch and PC.

Features

  • Uses OpenGL 4.3 (Core Profile)
  • Loads shaders from the resources folder, or from RomFS on Switch
  • Uses nxlink stdio on Switch to provide terminal output for debugging messages
  • Has minimal platform-specific code
  • Supports full-screen mode on PC (pressing Alt+Enter)
  • Supports dynamic resolution changes (i.e. window resizes, or Switch docked/handheld mode changes)
  • Supports gamepads on PC (such as Xbox controllers), or keyboard as fallback when no gamepads are detected
  • Displays a world full of ( ͡° ͜ʖ ͡°)

Building for Switch

To build for Switch, a standard development environment must first be set up. In order to do so, refer to the Getting Started guide.

(sudo) (dkp-)pacman -S switch-glfw switch-mesa switch-glm
make -j
nxlink -s hybrid_app.nro

Building for PC

To build for PC, the following components are required:

  • meson/ninja build system
  • A C++ compiler supporting the C++14 standard
  • GLFW version 3.3 or higher (as a static library)
  • GLM version 0.9.8 or higher

Please refer to the usual sources of information for your particular operating system. Usually the commands needed to build this project will look like this:

meson build
ninja -C build
./build/hybrid_app

Also, please note that the resources folder must be available in the working directory, otherwise the program will fail to find the shaders.

Building for Windows using msys2

msys2 provides all packages needed to build this project:

pacman -S mingw-w64-x86_64-gcc mingw-w64-x86_64-meson mingw-w64-x86_64-ninja mingw-w64-x86_64-pkg-config mingw-w64-x86_64-glfw mingw-w64-x86_64-glm
LDFLAGS="-static" meson build
ninja -C build
./build/hybrid_app
  • 工银e生活页面及jsAPI交互接口 情况说明: 1、判断运行环境,否则是否在android或IOS环境的ICBC内,才起作用,当然改动hybrid_app.js中的return false为alert,也可以在chrome中体验,毕竟只是JS; 2、登录传递参数,需要查询出登录参数cust_id、phone、currentTimeMillis、isNewUser四个必选参数,调用方法即可; 3、必

  • 简介 面试的时候小伙伴们有没有被问到过Hybrid App呢?不得不说了解Hybrid App是我们前端面试中的一个加分项。今天就跟随笔者的步伐让你彻底弄懂Hybrid App,让你就算没做过也能对面试官的问题应答自如。 前面笔者已经介绍了 移动端H5网页开发必备知识和移动端H5网页开发常见问题汇总两篇文章,感兴趣的同学可以看一看。今天这篇文章主要是介绍Hybrid App以及H5页面是怎么和Ap

  • 特点: 该加密狗是单片机加密狗时代飞天公司的主力产品,ROCKEY 4一样继承了ROCKEY 2的硬件特征,具有全球唯一性硬件ID。ROCKEY 4内置了硬件随机数生成器,可以进行一些抗跟踪,或在硬件算法中参与运算以及进行一些其他功用等。自定义用户ID可作为发布软件的序列号单元,它是一个 32 位长的数字,被保存在加密锁内部的特定位置。开发商当然也可以根据实际情况用作其他的一些用途,例如写入一个时

相关阅读

相关文章

相关问答

相关文档