sdl3-sample-简明教程,指导如何在包括移动和 Web 在内的各种平台上构建和使用 SDL3

sdl3-sample-简明教程,指导如何在包括移动和 Web 在内的各种平台上构建和使用 SDL3

sdl3-sample源代码地址为:https://github.com/Ravbug/sdl3-sample

sdl3-sample

sdl3-example是SDL3的简明教程,指导如何在包括移动和 Web 在内的各种平台上构建和使用 SDL3。还包含 SDL_mixer、SDL_Image 和 SDL_ttf!
在线网站运行示例为:https://www.ravbug.com/sdl3-sample/

https://www.ravbug.com/sdl3-sample/官网在线运行结果:

在这里插入图片描述

SDL3 App From Source Minimal Example

This is a minimal example for building and using SDL3, SDL_Mixer, SDL_Image, and SDL_ttf_ from source
using C++ and CMake. It also demonstrates setting up things like macOS/iOS
bundles.
See src/main.cpp for the code.

Building And Running

Are you a complete beginner? If so, read this!
Otherwise, install CMake and your favorite compiler, and follow the commands below:

# You need to clone with submodules, otherwise SDL will not download. git clone https://github.com/Ravbug/sdl3-sample --depth=1 --recurse-submodules cd sdl3-sample cmake -S . -B build 

You can also use an init script inside config/. Then open the IDE project inside build/
(If you had CMake generate one) and run!

Supported Platforms

I have tested the following:

PlatformArchitectureGenerator
macOSx86_64, arm64Xcode
iOSx86_64, arm64Xcode
tvOSx86_64, arm64Xcode
visionOS*arm64Xcode
Windowsx86_64, arm64Visual Studio
Linuxx86_64, arm64Ninja, Make
Web*wasmNinja, Make
Android*x86, x64, arm, arm64Ninja via Android Studio

*See further instructions in config/

Note: UWP support was removed from SDL3 during its development. For historical reasons, you can get a working UWP sample via this commit: df270da

Updating SDL

Just update the submodule:

cd SDL git pull cd .. cd SDL_ttf git pull 

You don’t need to use a submodule, you can also copy the source in directly. This
repository uses a submodule to keep its size to a minimum.

Reporting issues

Is something not working? Create an Issue or send a Pull Request on this repository!

当在自己的MacOS、Windows、Ubuntu等Linux系统中安装了CMake安装包后,可以按照官网说的如下命令执行:

# You need to clone with submodules, otherwise SDL will not download.git clone https://github.com/Ravbug/sdl3-sample --depth=1 --recurse-submodules cd sdl3-sample cmake -S . -B build cmake --build build make

在MacOS中运行结果

在MacOS中运行结果

在Windows11中运行结果

在Windows11中运行结果

参考资料

Read more

Ace-Translate:终极本地离线AI翻译工具完整使用指南

Ace-Translate:终极本地离线AI翻译工具完整使用指南 【免费下载链接】Ace-Translate关于本地离线翻译程序,支持文本翻译,下划线翻译,屏幕截图翻译,语音(音频文件)翻译,视频翻译,txt文件,PPT,Word,PDF,Excel,图片翻译。资源 项目地址: https://gitcode.com/gh_mirrors/ac/Ace-Translate 在数字化时代,语言障碍依然是许多人面临的挑战。无论是学术研究、商务交流还是内容创作,我们都需要快速、准确且安全的翻译解决方案。Ace-Translate作为一款完全本地离线的AI翻译工具,彻底摆脱了网络依赖,为您提供零延迟、高隐私的完美翻译体验。🚀 为什么选择本地离线翻译? 传统在线翻译的三大痛点: * 网络中断时的无助感:在飞机、山区或网络信号弱的环境中,传统翻译工具完全失效 * 数据安全隐忧:敏感文件上传到云端服务器,存在泄露风险 * 响应速度受限:网络延迟和服务器负载直接影响翻译效率 本地化翻译的突破性优势: * 绝对数据安全:所有翻译过程都在本地设备完成,

AI 与存储的结合:智能存储的实践与挑战

AI 与存储的结合:智能存储的实践与挑战

AI 与存储的结合:智能存储的实践与挑战 背景 作为一个专注于存储架构的技术人,我一直在关注人工智能技术的发展及其在存储领域的应用。最近团队在探索如何利用 AI 技术提升存储系统的性能和效率,遇到了许多挑战。为了帮助团队更好地理解和实践智能存储,我决定写这篇实践指南。 智能存储的概念 1. 什么是智能存储 智能存储是指利用人工智能技术(如机器学习、深度学习等)来优化存储系统的性能、可靠性和管理效率的存储解决方案。智能存储的核心特点是: * 自优化:自动优化存储配置和资源分配 * 自监控:自动监控存储系统的状态和性能 * 自修复:自动检测和修复存储系统的问题 * 预测性分析:预测存储系统的性能和容量需求 2. 智能存储的优势 * 性能提升:通过 AI 优化存储性能 * 成本降低:优化存储资源使用,降低存储成本 * 可靠性提高:预测和预防存储故障 * 管理效率:自动化存储管理,减少人工干预 3. 智能存储的挑战 * 数据质量:AI 模型需要高质量的数据进行训练 * 计算开销:AI

从零搭建可落地 Agent:一文吃透 AI 智能体开发全流程

从零搭建可落地 Agent:一文吃透 AI 智能体开发全流程

🎁个人主页:我滴老baby 🎉欢迎大家点赞👍评论📝收藏⭐文章 🔍系列专栏:AI 文章目录: * 【前言】 * 一、先搞懂:2026年爆火的AI Agent,到底是什么? * 1.1 Agent的核心定义 * 1.2 Agent的4大核心能力 * 1.3 2026年Agent的3个热门落地场景 * 二、框架选型:2026年6大主流Agent框架,新手该怎么选? * 三、实战环节:从0到1搭建可落地的“邮件处理Agent”(全程代码+步骤) * 3.1 实战准备:环境搭建(10分钟搞定) * 3.1.1 安装Python环境 * 3.1.2 创建虚拟环境(避免依赖冲突) * 3.1.

OpenClaw 最新保姆级飞书对接指南教程 搭建属于你的 AI 助手

OpenClaw 最新保姆级飞书对接指南教程 搭建属于你的 AI 助手

OpenClaw 最新保姆级飞书对接指南教程 搭建属于你的 AI 助手 OpenClaw 是一款开源的本地 AI 助手,本篇 OpenClaw 安装教程将手把手教你在 Linux 系统下部署最新版 OpenClaw,并完成飞书机器人对接。OpenClaw 支持在你自己的服务器上运行,通过飞书、WhatsApp、Telegram 等聊天工具交互。与云端 SaaS 服务不同,OpenClaw 让你完全掌控数据隐私,可以执行系统命令、浏览网页、管理文件,甚至编写代码——是你的专属开源 AI 助手。 注意:本教程在 Linux 系统下进行 OpenClaw 是什么? OpenClaw(原名 Clawdbot,后更名为 Moltbot,现正式命名为 OpenClaw)是一个运行在你本地环境的高权限 AI 智能体。