graphics/sdl2_gpu: Hardware-accelerated 2D graphics library
SDL_gpu, a library for making hardware-accelerated 2D graphics easy.
- High performance (it automatically collects and submits batches
instead of separate draw commands for each sprite and redundant
state changes)
- Shader API
- Arbitrary geometry rendering (triangles)
- Can be integrated with explicit OpenGL calls (mixed 2D and 3D)
- Full blend state control
- Built-in primitive shapes (points, lines, tris, rects, ellipses,
polygons, even arcs)
- Uses a style familiar to SDL 1.2 users
- Compatible with either SDL 1.2 or 2.0
- Loads BMP, TGA, and PNG files via stb-image
- Rotates and scales about the center of images, making reasoning
about the resulting corner coordinates more obvious (adjustable
via anchor settings)
WWW: https://github.com/grimfang4/sdl-gpu
2023-05-15 18:23:36 +02:00
|
|
|
PORTNAME= sdl2_gpu
|
|
|
|
DISTVERSIONPREFIX= v
|
|
|
|
DISTVERSION= 0.12.0
|
|
|
|
CATEGORIES= graphics
|
|
|
|
|
2023-05-18 10:57:04 +02:00
|
|
|
MAINTAINER= fuz@FreeBSD.org
|
graphics/sdl2_gpu: Hardware-accelerated 2D graphics library
SDL_gpu, a library for making hardware-accelerated 2D graphics easy.
- High performance (it automatically collects and submits batches
instead of separate draw commands for each sprite and redundant
state changes)
- Shader API
- Arbitrary geometry rendering (triangles)
- Can be integrated with explicit OpenGL calls (mixed 2D and 3D)
- Full blend state control
- Built-in primitive shapes (points, lines, tris, rects, ellipses,
polygons, even arcs)
- Uses a style familiar to SDL 1.2 users
- Compatible with either SDL 1.2 or 2.0
- Loads BMP, TGA, and PNG files via stb-image
- Rotates and scales about the center of images, making reasoning
about the resulting corner coordinates more obvious (adjustable
via anchor settings)
WWW: https://github.com/grimfang4/sdl-gpu
2023-05-15 18:23:36 +02:00
|
|
|
COMMENT= Hardware-accelerated 2D graphics library
|
|
|
|
WWW= https://github.com/grimfang4/sdl-gpu
|
|
|
|
|
|
|
|
LICENSE= MIT
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
|
|
|
|
|
|
|
|
USES= cmake gl sdl pkgconfig
|
|
|
|
USE_LDCONFIG= yes
|
|
|
|
USE_GL= gl glew glu
|
|
|
|
USE_SDL= sdl2
|
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= grimfang4
|
|
|
|
GH_PROJECT= sdl-gpu
|
|
|
|
|
|
|
|
CMAKE_ON= USE_SYSTEM_GLEW DYNAMIC_GLES_3
|
2023-06-25 16:25:09 +02:00
|
|
|
CFLAGS+= -Wno-incompatible-function-pointer-types
|
graphics/sdl2_gpu: Hardware-accelerated 2D graphics library
SDL_gpu, a library for making hardware-accelerated 2D graphics easy.
- High performance (it automatically collects and submits batches
instead of separate draw commands for each sprite and redundant
state changes)
- Shader API
- Arbitrary geometry rendering (triangles)
- Can be integrated with explicit OpenGL calls (mixed 2D and 3D)
- Full blend state control
- Built-in primitive shapes (points, lines, tris, rects, ellipses,
polygons, even arcs)
- Uses a style familiar to SDL 1.2 users
- Compatible with either SDL 1.2 or 2.0
- Loads BMP, TGA, and PNG files via stb-image
- Rotates and scales about the center of images, making reasoning
about the resulting corner coordinates more obvious (adjustable
via anchor settings)
WWW: https://github.com/grimfang4/sdl-gpu
2023-05-15 18:23:36 +02:00
|
|
|
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS_CMAKE_BOOL= BUILD_DOCS
|
|
|
|
DOCS_BUILD_DEPENDS= doxygen:devel/doxygen
|
|
|
|
DOCS_ALL_TARGET= doc
|
|
|
|
|
|
|
|
do-install-DOCS-on:
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
cd ${BUILD_WRKSRC} && ${COPYTREE_SHARE} html ${STAGEDIR}${DOCSDIR}
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|