2017-06-07 08:41:11 +00:00
|
|
|
#
|
|
|
|
# spec file for package raylib
|
|
|
|
#
|
- Update to 4.5.0:
* NEW Improved ANGLE support on Desktop platforms: Support for OpenGL ES 2.0 on Desktop platforms (Windows,
Linux, macOS) has been reviewed by @wtnbgo GitHub user. Now raylib can be compiled on desktop for OpenGL
ES 2.0 and linked against ANGLE. This small addition open the door to building raylib for all ANGLE
supported backends: Direct3D 11, Vulkan and Metal. Please note that this new feature is still experimental
and requires further testing!
* NEW Camera module: A brand new implementation from scratch for rcamera module, contributed by @Crydsch
GitHub user! New camera system is simpler, more flexible, more granular and more extendable. Specific camera
math transformations (movement/rotation) have been moved to individual functions, exposing them to users if
required. Global state has been removed from the module and standalone usage has been greatly improved; now
rcamera.h single-file header-only library can be used externally, independently of raylib. A new
UpdateCameraPro() function has been added to address input-dependency of UpdateCamera(), now advance users
have full control over camera inputs and movement/rotation speeds!
* NEW Support for M3D models and M3D/GLTF animations: 3d models animations support has been a limited aspect of
raylib for long time, some versions ago IQM animations were supported but raylib 4.5 also adds support for
the brand new M3D file format, including animations and the long expected support for GLTF animations! The
new M3D file format is simple, portable, feature complete, extensible and open source. It also provides a
complete set of tools to export/visualize M3D models from/to Blender! Now raylib supports up to 3 model
file-formats with animations: IQM, GLTF and M3D.
* NEW Support QOA audio format (import/export): Just a couple of months ago the new QOA file format was
published, a very simple, portable and open source quite-ok-audio file format. raylib already supports it,
added to raudio module and including audio loading from file, loading from memory, streaming from file,
streaming from memory and exporting to QOA audio format. Because simplicity really matters to raylib!
* NEW Module for compressed textures loading: rl_gputex, a portable single-file header-only small library to
load compressed texture file-formats (DDS, PKM, KTX, PVR, ASTC). Provided functionality is not new to raylib
but it was part of the raylib rtextures module, now it has been moved into a separate self-contained library,
improving portability. Note that this module is only intended to load compressed data from files, ready to be
uploaded to GPU, no compression/decompression functionality is provided. This change is a first step towards
a better modularization of raylib library.
* Reviewed rlgl module for automatic limits checking: Again, rlgl has been reviewed to simplify usage. Now
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/raylib?expand=0&rev=35
2023-03-20 09:35:06 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2017-06-07 08:41:11 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
- Update to 3.0.0:
* All global variables from the multiple raylib modules have
been moved to a global context state, it has several benefits, first, better
code readability with more comprehensive variables naming and categorization
(organized by types, i.e. CORE.Window.display.width,
CORE.Input.Keyboard.currentKeyState or RLGL.State.modelview). Second, it allows
better memory management to load global context state dynamically when required
(not at the moment), making it easy to implement a hot-reloading mechanism if
desired.
* All memory allocations on raylib and its dependencies now use
RL_MALLOC, RL_FREE and similar macros. Now users can easely hook their own
memory allocations mechanism if desired, having more control over memory
allocated internally by the library. Additionally, it makes it easier to port
the library to embedded devices where memory control is critical. For more info
check raylib issue #1074.
* All I/O file accesses from raylib are being moved
to memory data access, now all I/O file access is centralized into just four
functions: LoadFileData(), SaveFileData(), LoadFileText(), SaveFileText().
Users can just update those functions to any I/O file system. This change makes
it easier to integrate raylib with Virtual File Systems or custom I/O file
implementations.
* All raylib data structures have been reviewed and optimized
for pass-by-value usage. One of raylib distinctive design decisions is that
most of its functions receive and return data by value. This design makes
raylib really simple for newcomers, avoiding pointers and allowing complete
access to all structures data in a simple way. The downside is that data is
copied on stack every function call and that copy could be costly so, all
raylib data structures have been optimized to stay under 64 bytes for fast copy
and retrieve.
* All raylib tracelog messages have been reviewd and categorized
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/raylib?expand=0&rev=20
2020-03-31 09:29:16 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-06-07 08:41:11 +00:00
|
|
|
#
|
|
|
|
|
2017-06-08 15:26:37 +00:00
|
|
|
|
2017-06-07 08:41:11 +00:00
|
|
|
Name: raylib
|
2023-11-18 13:35:33 +00:00
|
|
|
Version: 5.0
|
2017-06-07 08:41:11 +00:00
|
|
|
Release: 0
|
2017-11-03 12:17:22 +00:00
|
|
|
Summary: C library for learning video game programming
|
2017-06-07 08:41:11 +00:00
|
|
|
License: Zlib
|
2017-06-08 15:26:37 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2022-02-28 17:52:53 +00:00
|
|
|
URL: https://www.raylib.com
|
2021-05-19 12:02:04 +00:00
|
|
|
Source: raylib-%{version}.tar.xz
|
2017-06-07 08:41:11 +00:00
|
|
|
BuildRequires: Mesa-libGL-devel
|
2018-07-24 09:29:32 +00:00
|
|
|
BuildRequires: cmake
|
2018-05-18 17:44:43 +00:00
|
|
|
BuildRequires: gcc-c++
|
2018-07-24 09:29:32 +00:00
|
|
|
BuildRequires: libXcursor-devel
|
2018-05-18 17:44:43 +00:00
|
|
|
BuildRequires: libXi-devel
|
2018-07-24 09:29:32 +00:00
|
|
|
BuildRequires: libXinerama-devel
|
|
|
|
BuildRequires: libXrandr-devel
|
2022-11-03 12:53:33 +00:00
|
|
|
# raylib ships an in-tree glfw that is a copy of *a* git revision of upstream glfw
|
|
|
|
# containing features they need. They are unhappy that it takes such
|
|
|
|
# a long time for 3.4 to be released. So ship it.
|
|
|
|
#BuildRequires: libglfw-devel >= 3.4
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%description
|
2017-11-03 12:17:22 +00:00
|
|
|
A C library for learning video game programming.
|
|
|
|
raylib is inspired by the Borland BGI graphics library and by the XNA framework.
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%package -n raylib-devel
|
|
|
|
Summary: Development files for %{name}
|
2017-06-08 15:26:37 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2023-11-18 13:35:33 +00:00
|
|
|
Requires: libraylib450 = %{version}
|
2017-06-07 08:41:11 +00:00
|
|
|
Requires: openal-soft-devel
|
|
|
|
|
|
|
|
%description -n raylib-devel
|
2017-11-03 12:17:22 +00:00
|
|
|
Development files and headers for %{name}.
|
2017-06-07 08:41:11 +00:00
|
|
|
|
2023-11-18 13:35:33 +00:00
|
|
|
%package -n libraylib450
|
2017-11-03 12:17:22 +00:00
|
|
|
Summary: C library for learning video game programming
|
2017-09-08 16:41:13 +00:00
|
|
|
Group: System/Libraries
|
2017-06-08 15:26:37 +00:00
|
|
|
|
2023-11-18 13:35:33 +00:00
|
|
|
%description -n libraylib450
|
2017-11-03 12:17:22 +00:00
|
|
|
A C library for learning video game programming.
|
2017-06-08 15:26:37 +00:00
|
|
|
|
2017-06-07 08:41:11 +00:00
|
|
|
%prep
|
2021-05-19 12:02:04 +00:00
|
|
|
%setup -q
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%build
|
2018-05-18 17:44:43 +00:00
|
|
|
%cmake \
|
2021-05-19 12:02:04 +00:00
|
|
|
-DBUILD_EXAMPLES=OFF \
|
|
|
|
-DPLATFORM=Desktop \
|
2022-02-28 17:52:53 +00:00
|
|
|
-DBUILD_SHARED_LIBS=ON \
|
|
|
|
-DCMAKE_BUILD_TYPE=Release \
|
|
|
|
-DOpenGL_GL_PREFERENCE=GLVND \
|
2022-11-03 12:53:33 +00:00
|
|
|
-DUSE_EXTERNAL_GLFW=OFF
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%install
|
2018-05-18 17:44:43 +00:00
|
|
|
%cmake_install
|
2017-06-08 15:26:37 +00:00
|
|
|
|
2023-11-18 13:35:33 +00:00
|
|
|
%post -n libraylib450 -p /sbin/ldconfig
|
|
|
|
%postun -n libraylib450 -p /sbin/ldconfig
|
2017-06-08 15:26:37 +00:00
|
|
|
|
2023-11-18 13:35:33 +00:00
|
|
|
%files -n libraylib450
|
2021-05-19 12:02:04 +00:00
|
|
|
%license LICENSE
|
- Update to 3.5.0:
* Platform supported: Raspberry Pi 4 native mode (no X11 windows)
through DRM subsystem and GBM API. Actually this is a really
interesting improvement because it opens the door to raylib to
support other embedded platforms (Odroid, GameShell, NanoPi...).
Also worth mentioning the un-official homebrew ports of raylib
for PS4 and PSVita.
* NEW configuration options exposed: For custom raylib builds,
config.h now exposes more than 150 flags and defines to build
raylib with only the desired features, for example, it allows to
build a minimal raylib library in just some KB removing all
external data filetypes supported, very useful to generate small
executables or embedded devices.
* NEW automatic GIF recording feature: Actually, automatic GIF
recording (CTRL+F12) for any raylib application has been available
for some versions but this feature was really slow and low-performant
using an old gif library with many file-accesses. It has been replaced
by a high-performant alternative (msf_gif.h) that operates directly
on memory... and actually works very well! Try it out!
* NEW RenderBatch system: rlgl module has been redesigned to support
custom render batches to allow grouping draw calls as desired, previous
implementation just had one default render batch. This feature has not
been exposed to raylib API yet but it can be used by advance users dealing
with rlgl directly. For example, multiple RenderBatch can be created
for 2D sprites and 3D geometry independently.
* NEW Framebuffer system: rlgl module now exposes an API for custom Framebuffer
attachments (including cubemaps!). raylib RenderTexture is a basic
use-case, just allowing color and depth textures, but this new API allows
the creation of more advance Framebuffers with multiple attachments,
like the G-Buffers. GenTexture*() functions have been redesigned to use this new API.
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/raylib?expand=0&rev=26
2021-01-04 14:51:24 +00:00
|
|
|
%{_libdir}/libraylib.so.*
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%files -n raylib-devel
|
2018-05-18 17:44:43 +00:00
|
|
|
%doc CHANGELOG README.md
|
2017-06-07 08:41:11 +00:00
|
|
|
%{_includedir}/raylib.h
|
2020-04-28 07:29:09 +00:00
|
|
|
%{_includedir}/raymath.h
|
|
|
|
%{_includedir}/rlgl.h
|
2017-06-07 08:41:11 +00:00
|
|
|
%{_libdir}/libraylib.so
|
2018-05-18 17:44:43 +00:00
|
|
|
%{_libdir}/pkgconfig/raylib.pc
|
Accepting request 706634 from home:jubalh:branches:devel:libraries:c_c++
- Update to 2.5.0:
* New window management and filesystem functions to query monitor
information, deal with clipboard, check directory files info and
even launch a URL with default system web browser. Experimental
High-DPI monitor support has also been added through a compile flag.
* Redesigned Gamepad mechanism, now generic for all platforms and
gamepads, no more specific gamepad configurations.
* Redesigned UWP input system, now raylib supports UWP seamlessly,
previous implementation required a custom input system implemented
in user code.
* rlgl module has been redesigned to support a unique buffer for
shapes drawing batching, including LINES, TRIANGLES, QUADS in the
same indexed buffer, also added support for multi-buffering if required.
Additionally, rlPushMatrix()/rlPopMatrix() functionality has been
reviewed to behave exactly like OpenGL 1.1, models_rlgl_solar_system
example has been added to illustrate this behaviour.
* VR simulator has been reviewed to allow custom configuration of
Head-Mounted-Device parameters and distortion shader, core_vr_simulator
has been properly adapted to showcase this new functionality, now
the VR simulator is a generic configurable stereo rendering system
that allows any VR device simulation with just a few lines of code
or even dynamic tweaking of HMD parameters.
* Support for Unicode text drawing; now raylib processes UTF8
strings on drawing, supporting Unicode codepoints, allowing rendering
mostly any existent language (as long as the font with the glyphs is provided).
* Brand new text management API, with the addition of multiple functions
to deal with string data
* Multiple new shapes and textures drawing functions
* Experimental cubemap support, to automatically load multiple
cubemap layouts (LoadTextureCubemap()).
OBS-URL: https://build.opensuse.org/request/show/706634
OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/raylib?expand=0&rev=18
2019-05-31 09:30:54 +00:00
|
|
|
%{_libdir}/cmake/raylib/
|
2017-06-07 08:41:11 +00:00
|
|
|
|
|
|
|
%changelog
|