-
Notifications
You must be signed in to change notification settings - Fork 12
NOTE: This page is for Fedora/RedHat users. If you are an Ubuntu/Debian user, please see the Debian (Aptitude) section!
NOTE: These steps are for Fedora users only. CentOS users can use the install-centos script.
As of Summer 2016, an RPM package has been made for easy installation of TSGL.
This means that you can use yum/dnf to install TSGL on your machine.
Follow these steps in order to do so:
1). Add the OBS repo.
-
cdinto the/etc/yum.repos.d/directory. -
Type
sudo su. -
Create this file:
home_TSGL_Maker.repo. -
Using your favorite text editor, add these changes to the
.repofile:
[home_TSGL_Maker]
name=home:TSGL_Maker (Fedora_24)
type=rpm-md
baseurl=http://download.opensuse.org/repositories/home:/TSGL_Maker/Fedora_24/
gpgcheck=1
gpgkey=http://download.opensuse.org/repositories/home:/TSGL_Maker/Fedora_24//repodata/repomd.xml.key
enabled=1
2). Clean yum/dnf.
-
Type
sudo dnf clean all(orsudo yum clean allfor Fedora versions earlier than 24). -
Type
sudo dnf update(orsudo yum updatefor Fedora versions earlier than 24).
3). Install tsgl.
- Type
sudo dnf install tsgl(orsudo yum install tsglfor Fedora versions earlier than 24).
The TSGL package will be installed on your machine along with a packaged version of GLFW.
As a result of installing the TSGL package, the generic Makefile for building programs will be located in /usr/include/TSGL_GENERIC_MAKEFILE/. Copy the Makefile over to your project directory in order to create applications that utilize the TSGL library.
NOTE: In order to receive updated TSGL packages from the OBS repo, you will have to repeat step 2. This ensures that the OBS repo appears as updated on your machine.
2D
- Using Background
- Using Canvas
- Using Shapes
- Using Text and Images
- Using Colors
- Animation Loops
- Using Functions
- Using Keyboard And Mouse
- Command-line arguments
- Bringing It All Together
3D