# Introduction

This online book will introduce the main concepts required to write a 3D game using the LWJGL 3 library.

[LWJGL](http://www.lwjgl.org/) is a Java library that provides access to native APIs used in the development of graphics (OpenGL), audio (OpenAL) and parallel computing (OpenCL) applications. This library leverages the high performance of native OpenGL applications while using the Java language.

My initial goal was to learn the techniques involved in writing a 3D game using OpenGL. All the information required was there in the internet but it was not organized and sometimes it was very hard to find and even incomplete or misleading.

I started to collect some materials, develop some examples and decided to organize that information in the form of a book.

[Table of contents](https://github.com/lwjglgamedev/lwjglbook-bookcontents/blob/main/SUMMARY.md).

You can also check my Vulkan book [here](https://github.com/lwjglgamedev/vulkanbook).

## Source Code

The source code of the samples of this book is in [GitHub](https://github.com/lwjglgamedev/lwjglbook).

The source code for the book itself is also published in [GitHub](https://github.com/lwjglgamedev/lwjglbook-bookcontents).

## License

The book is licensed under [Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)](http://creativecommons.org/licenses/by-sa/4.0/)

The source code for the book is licensed under [Apache v2.0](https://www.apache.org/licenses/LICENSE-2.0)

## Previous version

Previous version of the book can still be accessed in Github. Here are the links:

* [Book contents](https://github.com/lwjglgamedev/lwjglbook-bookcontents-leg)
* [Source code](https://github.com/lwjglgamedev/lwjglbook-leg)

**NOTE**: The old version of the book was published, originally, using a different URL. That site is now part of what GitBook considers legacy content. Unfortunately, I cannot access that content any more nor even delete it (according to GitBook this is not possible). Therefore, if you are accessing the book through a GitBook URL which starts with: "https://lwjglgamedev.gitbooks.io/" you are accessing and out of sync version (not even in sync with previous book legacy version which is still hosted in Github).

## Support

If you like the book you can become a [sponsor](https://github.com/sponsors/lwjglgamedev)

## Comments are welcome

Suggestions and corrections are more than welcome (and if you do like it please rate it with a star). Please send them using the discussion forum and make the corrections you consider in order to improve the book.

## Author

Antonio Hernández Bejarano

## Special Thanks

To all the readers that have contributed with corrections, improvements and ideas.
