LWJGL Tutorials

For whom is this series meant?

This series is meant for those who have an intermediate knowledge of Java but do not know anything about OpenGL®.

Links to the LWJGL tutorials

This LWJGL tutorial series contains both video tutorials and text tutorials. Either watch the video playlist through YouTube, or read the articles which are listed below. Also, have a look at the source code.

Workspace in Eclipse: setting up the workspace in Eclipse that is required for the compilation and execution of software written with the Lightweight Java Game Library.

Creating a displayusing the Display class to create a window with custom resolution and title.

OpenGL drawing: setting up a two-dimensional rendering canvas and drawing coloured primitive shapes OpenGL.

Inputprocessing input using the Keyboard and Mouse classes.

Texturing: applying textures (images) to shapes using the slick_util library.

Game statesimplementing varying game states, for example the main menu, the loading screen, and the in-game state.

Animationimplementing frame-rate independent movement.

Entities: encapsulating game objects in classes. An object-oriented approach to entities.

Distributingbundling the software into a comprehensive executable jar-file.

Orthographic projectionscreating and using orthographic projections (i.e.: 2D cameras) using glOrtho.

Missing tutorials

I have not created text versions of all of the video tutorials. In fact, the video tutorials cover over double the content of the text tutorials. I will work on creating text versions of the remaining video tutorials when I have time for it.


117 thoughts on “LWJGL Tutorials

  1. Primb

    Thank you for sharing some of these resources for FREE and I am going to check into your end of year math activities. I needed some directions for students to create board games. Much appreciation! Memory Math – Memory matching card game for kids where they remove numerical cards from the playing field by pairing up a number with another card that has that many dots on it. Players can select levels where they do basic matching or match the results of math equations using common math operators https://www.bananasinvestment.com/community/profile/barrett45261007/ I mentioned in the intro that there are a couple of types of idle games – you have your normal idles, and the idle clickers. Even though I am not a big fan of the idle clicker, I couldn’t just pass on Cookies Inc. This game is amazing for a number of reasons. There you have it our list of best idle clicker games for iOS & Android in 2021 that is available for free. Let us know what you guys think about our game list and don’t forget to mention your top picks in the comment section below.

  2. mua chó poodle đẹp

    This design is wicked! You obviously know how to keep a reader entertained. Between your wit and your videos, I was almost moved to start my own blog (well, almost…HaHa!) Great job. I really enjoyed what you had to say, and more than that, how you presented it. Too cool!

  3. mua chó toy poodle đáng yêu

    Good post. I be taught something more difficult on totally different blogs everyday. It should at all times be stimulating to learn content material from different writers and follow a bit something from their store. I’d favor to make use of some with the content on my blog whether or not you don’t mind. Natually I’ll offer you a link in your net blog. Thanks for sharing.

  4. K.Olomytsyura@ahovey.w.skve.org

    Ꮇy coder is tгying to convince me too move to .net from PHP.

    I have always disliked the idea bеcause of the costs.

    Вut hе’s tryiong none the leѕѕ. I’ve been using Movable-type ᧐n vаrious websites f᧐r aboᥙt ɑ ʏear and ɑm worried аbout switching toⲟ anothesr platform.

    Ӏ have hearⅾ fantastic things about blogengine.net.
    Ӏs there a ᴡay I can transfer аll my wordpress
    content іnto it? Any helpp ԝould be reɑlly appreciated!

    my blog; read more [K.Olomytsyura@ahovey.w.skve.org]

  5. Katrice Coffee



    Check it out this Anonymous and Private Proxy Servers.
    – HTTP & SOCKS5 Proxy supported.
    – IP Authentication or Password Authentication available.
    – MORE INFO HERE: https://bit.ly/3ifZkmL

    Thanks, Katrice Coffee
    If you no longer wish to hear from us, please reply this email.

  6. XdPIO3sC

    496163 256459Wow, cool post. Id like to write like this too – taking time and real effort to make a great article but I procrastinate too a lot and never seem to get started. Thanks though. 141737

  7. Yo lo siento, pero no se puede citar a Citroën como la panacea técnica cuando ninguno de sus coches, ninguno, presenta ni tan siquiera un cada día más común sistema de control de distancias. Insisto, prueba a ir en un BMW, Audi, Mercedes durante 8 ho

    En MAP podemos fabricar todo tipo de piezas en medidas que van desde los 2 a los 250 milímetros de Ø. y en distintos materiales como latón, acero, aluminio, PVC, nylon y delrín. En Tormega Vigo tenemos una amplia experiencia en mecanizado de todo tipo de piezas y en diversos materiales, fabricando piezas por decoletaje en tornos automáticos CNC de última generación.

  8. El mecanizado de de precisión a menudo usa la programación de dispositivos por control decimal numérico (CNC), que permiten seguir las dimensiones exactas a través de la serie, y también de máquinas herramienta dirigidas por medio de software, combi

    Tras las pruebas de estanqueidad (Test de fugas tanto de aire como de Helio), en las grandes producciones se inspeccionan todos y cada uno de los materiales y elementos mecanizados a través de las lineas de visión artificial, lo que garantiza el correcto acotamiento de los productos antes del embalado.

  9. Las reclamaciones por problemas surgidos con la compañía aérea deben enviarse a la Dirección General de Aviación Civil, en Paseo de la Castellana, 7. Madrid. El plazo legal que tienen las promotoras las constructoras en su caso para subsanar los defe

    Colaboramos con los principales proveedores de tratamientos térmicos y de recubrimientos de la zona, para poder ofrecer un servicio rápido y eficaz de 24h en el proceso de acabados superficiales, en los casos que resulta necesario. El único problema era el material: aquellos primeros sistemas de estereolitografía (SL) se limitaban a uno dos tipos de resinas fotopolímeras líquidas, útiles únicamente a efectos de “exposición” como patrones para fundido y moldeo.

  10. roksana

    Hello guys, I am Roksana a professional in academic writing.

    I enjoy solving people’s problems and make them happy. That is what I have been doing for decades now.
    I have been writing since I was 12 years old and never knew it would turn out to be a full-time career. I have also been able to manage several assignments that involves writing. And I worked in three organizations as a volunteer to assist people.My hobbie has always been to help people succeed. And I go the extra mile to make that happen.
    I enjoy writing Thesis and have helped people from countries like Canada.
    I work with a service provider whose mission is to provide quality writing and make people happy. In fact, many people come to me for professional help on a daily basis because they know I always deliver. And I will continue to provide nothing but quality to build trust like I have been doing for the past few years.

    Academic writer – Roksana – 10 Traditional Philippines Dishes Every US Traveler Must Try Team

  11. masterpoker.doodlekit.com

    Fantastic beat ! Ӏ wisһ to apprentice at thе samе time as үou amend youг site, һow coսld i subscribe
    for a weblog web site? The account helped me a apⲣropriate deal.

    I were tiny bіt familiar օf this yօur broadcast offered shiny transparent concept

  12. krystian

    Hello, my name is Krystian Bailey!

    I`m a professional writer and I`m going to change your lifes onсe and for all
    Writing has been my passion for a long time and now I cannot imagine my life without it.
    Most of my poems were sold throughout Canada, USA, Old England and even Australia. Also I`m working with services that help people to save their nerves.
    People ask me “Sir, Krystian, I need your professional help” and I always accept the request, `cause I know, that only I can save their time!

    Professional Academic Writer – Krystian Bailey – /sci/ – Science & MathCorp

  13. all in one computer

    Thіs ⅽame loaded ԝith а processor of i7-860, 8 GB οf RAM (more tһe ram the
    ƅetter I aⅼᴡays ѕay) plus a 500 GB һard drive.

    I woould not mіss this chance beecause Ι am already a PC-obsessed person. Tһis ցives yoou tһе ability tⲟ tгy everythіng that your pɑrticular
    mouse ccan ԁo with just yߋur finger.

    Also visit my site; all in one computer

  14. datukqq

    Você é minha aspiração, possuo poucos blogs e muitas vezes acabo com a postagem :). “Analisar o humour é como dissecar um sapo. Poucas pessoas estão interessadas e o sapo morre disso. “Por E. B. White.

  15. jody

    My name is Jody Read. And I am a professional academic writer with many years of experience in writing.

    My interest is to solve problems related to writing. And I have been doing it for many years. I have been with several organizations as a volunteer and have assisted clients in many ways.
    My love for writing has no end. It is like the air we breathe, something I cherish with all my being. I am a full-time writer who started at an early age.
    I’m happy that I`ve already sold several copies of my works in different countries like France and others too numerous to mention.
    I also work in an organization that provides assistance to many people from different parts of the world. People always come to me because I work no matter how hard their projects are. I help them to save money, because I feel fulfilled when people come to me for professional help.

    Ghost Writer – Jody – Band

  16. Adriene Clarida

    Have you ever thought about adding a little bit more than just your articles? I mean, what you say is valuable and everything. But think about if you added some great pictures or videos to give your posts more, “pop”! Your content is excellent but with pics and video clips, this site could undeniably be one of the greatest in its field. Wonderful blog!|

  17. Donnell Strombeck

    Howdy! I could have sworn I’ve visited this blog before but after looking at many of the articles I realized it’s new to me. Regardless, I’m certainly pleased I found it and I’ll be bookmarking it and checking back regularly!|

  18. Dollie Fryberger

    Nice post. I was checking continuously this blog and I am impressed! Very useful info specifically the last part I care for such information a lot. I was seeking this particular information for a very long time. Thank you and best of luck.

  19. walmart

    Very good blog! Do you have any helpful hints for aspiring writers?

    I’m planning to start my own website soon but I’m a little lost on everything.
    Would you recommend starting with a free platform like WordPress
    or go for a paid option? There are so many options out there that I’m totally overwhelmed ..

    Any ideas? Thank you!

  20. Claude Chapdelaine

    Good day thecodinguniverse.com

    SEO Link building is a process that requires a lot of time.
    If you aren’t using SEO software then you will know the amount of work load involved in creating accounts, confirming emails and submitting your contents to thousands of websites in proper time and completely automated.

    With THIS SOFTWARE the link submission process will be the easiest task and completely automated, you will be able to build unlimited number of links and increase traffic to your websites which will lead to a higher number of customers and much more sales for you.
    With the best user interface ever, you just need to have simple software knowledge and you will easily be able to make your own SEO link building campaigns.

    The best SEO software you will ever own, and we can confidently say that there is no other software on the market that can compete with such intelligent and fully automatic features.
    The friendly user interface, smart tools and the simplicity of the tasks are making THIS SOFTWARE the best tool on the market.

    IF YOU’RE INTERESTED, CONTACT ME ==> MoneyRobotSubmitter@mail.com

    Regards, Claude Chapdelaine
    Belgium, VOV, Daknam, 9160, Raas Van Gaverestraat 68

  21. Ronny

    Wow, wonderful blog layout! How long have you been blogging for?
    you made blogging look easy. The overall look of
    your website is excellent, as well as the content!

  22. Mohamed

    Currently it seems like Movable Type is the top blogging platform out there right now.
    (from what I’ve read) Is that what you are using on your blog?


    Please help me to find free Carfax alternative like this one http://vinchain.io/report/check. I need to check several vin numbers for free. They also have ICO now and seek for investors and partners, maybe you’ll be interested. But I want to know more alternatives.

  24. Yoavrinc

    Champion Davis, Canada’s swashbuckling Olympic gold-medal swimmer, died Monday from injuries incurred Saturday in an luck that Montreal protect still are infuriating to unravel.
    Davis, 25, was identifiable dead at 11 a.m. PST, said Jacques Charbonneau, a spokesman for Notre Dame Hospital in Montreal.
    Doctors gave Davis small chance of surviving after suffering a severe skull rift, capacity and spinal injury and multiple bruises from being hit home not later than a car.

  25. More Tips

    hello there and thank you for your info I have definitely picked up something new from right here. I did however expertise some technical issues using this website, since I experienced to reload the site lots of times previous to I could get it to load properly. I had been wondering if your web hosting is OK? Not that I am complaining, but slow loading instances times will often affect your placement in google and can damage your high quality score if ads and marketing with Adwords. Anyway I’m adding this RSS to my email and can look out for much more of your respective intriguing content. Ensure that you update this again soon.

  26. Our Source

    Its really a great and useful piece of info. I am glad that you shared this helpful info with us. Please keep us up to date like this. Thanks for sharing.

  27. More Info

    Ill immediately grasp your rss feed as I can’t find your e-mail subscription link or newsletter service. Do you’ve any? Please let me know so that I may subscribe. Thanks.

  28. visit webpage

    This website online is really a stroll-by means of for all the data you wanted about this and didnt know who to ask. Glimpse here, and also youll definitely discover it.

  29. SAT

    Tanto en empresas de la hosteleria como en hogares, debe ofrecerse profesionalidad en todos los ambitos de los electrodomesticos y sus posibles averias.

  30. lilac shade

    This is very interesting, Youre a very skilled blogger. I have joined your feed and look forward to seeking more of your magnificent post. Also, I have shared your website in my social networks!

  31. Robert Farwell edward jones

    Id personally declare this site article is utterly amazing, thanks a lot much to the helpful content present to people, remember to carry on and produce this sort of content. Thanks a lot yet again. Wonderful operate throughout Site.

  32. sepak bola

    You actually make it appear so easy together with your ptesentation but I in finding this
    atter to be actually something that I believe I’d bby nno means understand.
    It srems too complex and extremely extensive for me. I am having a look forward in your
    next put up, I wiull attempt to get thhe hold of it!

  33. judi online

    Hi there, just became aware of your blog through Google, and found that it’s truly informative. Im going to watch out for brussels. I will be grateful if you continue this in future. Numerous people will be benefited from your writing. Cheers!

  34. bandar bola

    Hiya, I am really glad I have found this info. Today bloggers publish just about gossip and net stuff and this is actually irritating. A good blog with exciting content, thats what I need. Thank you for making this website, and Ill be visiting again. Do you do newsletters by email?

  35. pekanbaru hosting

    Fantastic website you have here but I was wondering if you knew of any discussion boards that cover the same topics discussed here? Id really love to be a part of group where I can get feed-back from other experienced people that share the same interest. If you have any suggestions, please let me know.

  36. agen poker

    I just want to tell you that Im newbie to weblog and absolutely liked your blog site. More than likely Im going to bookmark your website . You really come with great articles and reviews. Thank you for revealing your blog

  37. levitra

    The brand of Moda in pelle provides extremely stylish, durable and comfortable shoes.
    All footwear at Bourne is hand-crafted especially by Opanka construction and the use of adhesives and
    machinery is minimal while creating the shoes, thus making the designs eco-friendly.
    Moccasin UGG slippers are quite popular among the men.

  38. tadalis

    There are hundreds of brands out there manufacturing the shoes.
    The world is really shrinking and ideas are being shared around
    the globe at a rapid pace. Right from the beginning the company had earned great reputation thanks to
    the quality of its shoes.

  39. erekcja

    So, it is necessary that you plan your shoe budget before buying one.
    You should always seek advice from someone who has purchase the original boots before.
    Wearing an elegant UGG boot with tight jeans can give you
    a classy and beautiful look.

  40. uroda

    It is not better to select high-heeled shoe, if you are an obese.
    The Unitron website includes detailed description of the features and benefits from this product.

    Right from the beginning the company had earned great reputation thanks to the quality of its shoes.

  41. Sheldon Chears

    Simply wish to say your article is as astounding. The clearness in your put up is just spectacular and i could suppose you’re knowledgeable in
    this subject. Well with your permission allow me to grab your RSS feed to stay updated with imminent post.
    Thank you a million and please carry on the rewarding work.

  42. levitra

    There are hundreds of brands out there manufacturing the shoes.

    Media doesn’t really know how to handle it and this was never
    more clear when we saw the Vogue Italia cover for June 2011.
    The Fashion Industry is totally focused on how people look and larger people
    do not figure on mainstream fashion’s radar.

  43. uroda

    Also, they have ruled the market due to their anatomical constructions of shoes that make
    the shoes anti-stress with special shock absorption system.
    Media doesn’t really know how to handle it and this was never more clear when we saw
    the Vogue Italia cover for June 2011. The cable breaking system is also
    new feature added to the line of three wheel strollers.

  44. torebki

    You can adopt their styles to suit yours; this is one of the best ways
    to determine the right fashion for you. Style- Most of us
    looks at the design and style while buying any item.

    Wearing an elegant UGG boot with tight jeans can give you a classy and beautiful look.

  45. potencja

    Most of the girls are choosing the basic sheepskin slip shoes, as they are comfortable and stylish.
    Bourne’s President, Thomas Mc – Claskie, always uses his creative
    imagery to make trendy shoes for men. Right from the beginning the company had earned
    great reputation thanks to the quality of its shoes.

  46. sukienki

    It is not better to select high-heeled shoe,
    if you are an obese. All footwear at Bourne is hand-crafted especially by Opanka construction and the use of adhesives and machinery is minimal while
    creating the shoes, thus making the designs eco-friendly.
    The Fashion Industry is totally focused on how people look and larger people do not figure on mainstream fashion’s radar.

  47. www

    So, it is necessary that you plan your shoe budget before buying one.
    You should always seek advice from someone who has purchase the original boots before.

    Right from the beginning the company had earned great reputation thanks to the quality of its shoes.

  48. bakery story cheats blog

    Also, while on the storage capacity you have questions about the
    abilities and bakery story cheats memories of
    his dog. It provides for an app with the music playing to
    be the participant will experience reality by having a perfect square.
    Let me introduce three top mobile games are developed using the
    invention of hand-free cell phones through bluetooth, or can they keep themselves entertained.

  49. deer hunter 2014 cheats android

    Nowadays, they have deer hunter 2014 hack taken casino
    games. Because deer hunter 2014 hack of this platform.
    One other thing about these games are the ways to entertained oneself.
    At last, Bobby is now available for the best source of finding

  50. age of warring empire cheats pdf

    Mobile gaming utilizes a range of players.
    Solitaire is not only treated just as easily performed by your mobile phone, they are willing to meet
    agents or new friends in order to age of warring empire
    cheats login with your friends or family in no time.
    The goal of players in based on the edge, struggling to adapt all the bananas using
    your money, chance, etc. Mobile phones have become a
    little money to play, you will need to think of firing you, because it
    also might want to carry out, then again whilst you progress muchfaster.

  51. http

    You can adopt their styles to suit yours; this is one of the best ways to determine
    the right fashion for you. Style- Most of us looks at the design and
    style while buying any item. Moccasin UGG slippers
    are quite popular among the men.

  52. game of war fire age cheats blogspot

    Cell phones game of war fire age cheats are no codes involved here.
    By employing the games as long as you try and have spread to sophisticated designer home
    consoles, computer, PS express, Sketchbook pro and when they back from the Grand Theft Auto series, this cell
    phone. 3 or higher operating system micro blogging sell their application store.

  53. Spanking Aunts

    This is occurring, in part, as a result of improving housing market conditions both nationally and regionally Spanking Aunts however,
    if you make certain that this monthly interest stays the same
    for your full term in the car loan, you then won’t have got unbudgeted increases that may
    cause trouble for some people.

  54. atique

    i learned java. i started learning lwjgl with the with the aim to game development. i fell in love with lwjgl. Now i come to know that game engine( unity3d, udk etc) is required to develop games. A game engine abstracts out all of the OpenGL, low-level logic. It does 100% of the rendering for you (except for shaders). And developing a game engine is not one persons work. So why did/should i learn lwjgl?

    1. Oskar Veerhoek Post author

      For smaller, more customized, games it makes much more sense to use a low-level library like LWJGL. Also, using LWJGL greatly alleviates you of licensing issues. Lastly, for me most of the fun is in the low-level OpenGL code, but that is a personal thing of course.

  55. TorakTu

    Might I suggest not going higher then Core 3.1 for OpenGL. Reason being is because the highest OpenGL a MAC can do is 3.2. Although I personally do not use a MAC, but looking at all this from a tutorial’s perspective, you can grab a larger audience by sticking with what everyone is able to use. otherwise, you will get a lot of people complaining how things do not work and that in itself can get overwhelming.

    Here is a quote from this website ( http://www.g-truc.net/post-0531.html ) DATE [ 27/12/2012 ] :
    ” The OpenGL ecosystem is particularly fragmented. There is a lot of different OpenGL implementations but none of them is reaching the same level of features. NVIDIA implements OpenGL 4.3; AMD implements OpenGL 4.2; Intel implements OpenGL 4.0; Apple implements OpenGL 3.2; and MESA implements OpenGL 3.1. On top of this, even if there are OpenGL 3 and OpenGL 4 hardware supporting each minor revision of the specifications, a lot of OpenGL 4 extensions are available on OpenGL 3 hardware. ”

    As you can see from the list, OpenGL 3.1 is able to be ran on most all hardware. So it in itself, In My Humble Opinion, should be the highest version of OpenGl to teach.

    Java with LWJGL with the ability to run your games on android and other devices, yea this is the way to go. Keep up the good work on your tutorials. They are some of the best I have seen.

    Just my thoughts on this subject.

  56. huhlig

    These videos are awesome. It would be cool at some point if you could show from the beginning alot of the basics using only the OpenGL 3.2 core profile rather than the old deprecated stuff.

    1. Oskar Veerhoek Post author

      Thanks. I have been looking into the core profile and have decided they are not worth the extra effort. It’s much more likely I will switch to Windows and use the 3.3 features in compatibility mode.

      1. huhlig

        A pity. It adds a lot of speed, power and flexibility to what you can do. But you don’t get to use all the magic functions for your matrices.

        1. Oskar Veerhoek Post author

          I know. Perhaps when my audience begins to dwindle, when I loose interest in the current set-up, or when I’m feeling really ambitious I will try to put out some content.

        2. Oskar Veerhoek Post author

          Guess what? I have been working with core opengl. I might even make an entirely new series about it!

          1. Oskar Veerhoek Post author

            Core OpenGL is the purest kind of modern OpenGL. It strips out a lot of features and lets you do pretty everything by yourself.

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>