Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

Commit

Permalink
initial
Browse files Browse the repository at this point in the history
  • Loading branch information
the wind committed Jan 13, 2023
1 parent 8e6013f commit 5f61a65
Show file tree
Hide file tree
Showing 14 changed files with 680 additions and 1 deletion.
2 changes: 2 additions & 0 deletions DISCLAIMER
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
All trademarks and/or service marks used in this project are the trademarks
and/or service marks of their respective owners.
3 changes: 2 additions & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
BSD 3-Clause License

Copyright (c) 2023, corwinn
Copyright (c) 2023, the wind.
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
5 changes: 5 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
C=-Wall -Wextra -std=c++14 -g -O0\
-fno-rtti -fno-exceptions -fno-threadsafe-statics
L=-Wl,--as-needed -lGL -lGLU -lglut
space: space.cpp
clang $(C) $< -o $@ $(L)
59 changes: 59 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@

What is it?
===========

A "more-colors" remake of "kspace.kss" - a "KDE" 3.5.10 screensaver.


Why?
====

Because one day "KDE" 3.5.10 will become either not build-able or not run-able
and/or people will leave "kspace.kss" unmaintained, etc., and I really like what
it does. But mostly because things like "kspace.kss" should be short and simple,
and certainly not dependable on enormous frameworks like "KDE" and its primary
dependency.


What will it become?
====================

More believable space flight simulator I hope (with impossible speeds of course,
because as you all probably know, the distances between the known stars are
immense; or should I say the distances are improbable?)


Keyboard keys
=============

* 'q' - quits the program
* 'f' - toggle full-screen
* 'p' - pause/resume the animation (debug purposes mostly)


How to build
============

* *nix:
- clang: type "Make"
- others: "cat Makefile" and figure it out :) TODO
* x86_64-w64-mingw32-clang++: type ". build_it_mingw"
* "VS": TODO (create dev. env. with "FreeGLUT-3.4.0"; should compile and run as
expected, but one can't be sure until it does)


Credits
=======

Thanks to:

* "KDE" 3.5.10 "kspace.kss" - for the insipration.
* "FreeGLUT-3.4.0" for the, windowing system to "Open GL", bridge.
* "MinGW-w64-9.0.0" for the means of cross-compiling the "Windows" OS binary.


Disclaimer
==========

All trademarks and/or service marks used in this project are the trademarks
and/or service marks of their respective owners.
8 changes: 8 additions & 0 deletions TODO
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[ ] test-suite
[ ] command line options: num of stars, speed, colors, etc.
[ ] keyboard keys: speed up/down, rotate
[ ] VBO option
[ ] shader option
[ ] Open GL 3 option
[ ] Open GL 4 option
[ ] cmake
1 change: 1 addition & 0 deletions build_it_mingw
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x86_64-w64-mingw32-clang++ -mwindows -fno-rtti -fno-exceptions -fno-threadsafe-statics -O3 -march=core2 -mtune=core2 -std=c++14 -Wall -Wextra -Wshadow -Werror=shadow -DGL_GLEXT_PROTOTYPES -DFREEGLUT_STATIC space.cpp -o space.exe -lopengl32 -lfreeglut_static -lwinmm -s -Wl,--as-needed
1 change: 1 addition & 0 deletions build_it_mingw_mconsole
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
x86_64-w64-mingw32-clang++ -mwindows -mconsole -fno-rtti -fno-exceptions -fno-threadsafe-statics -O3 -march=core2 -mtune=core2 -std=c++14 -Wall -Wextra -Wshadow -Werror=shadow -DGL_GLEXT_PROTOTYPES -DFREEGLUT_STATIC space.cpp -o space.exe -lopengl32 -lfreeglut_static -lwinmm -s -Wl,--as-needed
27 changes: 27 additions & 0 deletions licenses/freeglut-3.4.0/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Freeglut Copyright
------------------

Freeglut code without an explicit copyright is covered by the following
copyright:

Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies or substantial portions of the Software.

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of Pawel W. Olszta shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from Pawel W. Olszta.
43 changes: 43 additions & 0 deletions licenses/mingw-w64-v9.0.0/COPYING
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
With exception of certain parts that are prominently marked as being
in the Public Domain, BSD, or LGPL this Software is provided under the
Zope Public License (ZPL) Version 2.1.

Copyright (c) 2009 - 2013 by the mingw-w64 project

See the AUTHORS file for the list of contributors to the mingw-w64 project.

This license has been certified as open source. It has also been designated
as GPL compatible by the Free Software Foundation (FSF).

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions in source code must retain the accompanying copyright
notice, this list of conditions, and the following disclaimer.
2. Redistributions in binary form must reproduce the accompanying
copyright notice, this list of conditions, and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
3. Names of the copyright holders must not be used to endorse or promote
products derived from this software without prior written permission
from the copyright holders.
4. The right to distribute this software or to use it for any purpose does
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
the copyright holders. Use of them is covered by separate agreement
with the copyright holders.
5. If any files are modified, you must cause the modified files to carry
prominent notices stating that you changed the files and the date of
any change.

Disclaimer

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43 changes: 43 additions & 0 deletions licenses/mingw-w64-v9.0.0/DISCLAIMER
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/*
This Software is provided under the Zope Public License (ZPL) Version 2.1.

Copyright (c) 2009, 2010 by the mingw-w64 project

See the AUTHORS file for the list of contributors to the mingw-w64 project.

This license has been certified as open source. It has also been designated
as GPL compatible by the Free Software Foundation (FSF).

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions in source code must retain the accompanying copyright
notice, this list of conditions, and the following disclaimer.
2. Redistributions in binary form must reproduce the accompanying
copyright notice, this list of conditions, and the following disclaimer
in the documentation and/or other materials provided with the
distribution.
3. Names of the copyright holders must not be used to endorse or promote
products derived from this software without prior written permission
from the copyright holders.
4. The right to distribute this software or to use it for any purpose does
not give you the right to use Servicemarks (sm) or Trademarks (tm) of
the copyright holders. Use of them is covered by separate agreement
with the copyright holders.
5. If any files are modified, you must cause the modified files to carry
prominent notices stating that you changed the files and the date of
any change.

Disclaimer

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS ``AS IS'' AND ANY EXPRESSED
OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY DIRECT, INDIRECT,
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
10 changes: 10 additions & 0 deletions licenses/mingw-w64-v9.0.0/DISCLAIMER.PD
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/**
* DISCLAIMER
* This file has no copyright assigned and is placed in the Public Domain.
* This file is part of the mingw-w64 runtime package.
*
* The mingw-w64 runtime package and its code is distributed in the hope that it
* will be useful but WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESSED OR
* IMPLIED ARE HEREBY DISCLAIMED. This includes but is not limited to
* warranties of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
*/
1 change: 1 addition & 0 deletions release
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
7za a space-windows-x86_64-1.0.7z space.exe licenses
1 change: 1 addition & 0 deletions show_gallium_hud
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
GALLIUM_HUD="VRAM-usage,GPU-load;sensors_temp_cu-amdgpu-pci-0100.temp1,cpu" ./space
Loading

0 comments on commit 5f61a65

Please sign in to comment.