Author: Chastity White Rose

  • OpenGL Polygon

    While running on Linux I discovered a bug in my makefiles which caused nothing to compile if it did not have the “-lm” flag. This is because the sin and cos functions from the standard math library. Windows was implicitly adding it behind the scenes so I never learned to include it on the command line.


    But more importantly, I got a working OpenGL regular polygon program working. I spent hours going over the documentation of freeglut and opengl to figure out how to get it working. When I have had some rest I want to do a video covering that. Then eventually I’ll have to figure out how I get an accessible pixel array from a freeglut created window the same as I normally do with SDL. Once I have access to the pixels that means saving them with my BBM library code to files. This means a combination of my existing math which has proven to be great at creating animations but also the speed of OpenGL rendering polygon. There is still so much to learn but once I can draw a polygon I can always draw more. Squares are also polygons and so I can draw an whole checkerboard using opengl polygons once I take the time to code it.


    My OpenGL regular polygon source code is available here for anyone who wants to see.
    https://sourceforge.net/projects/binary-bit-map/files/source/opengl/gl_regpoly/

  • Learning OpenGL

    So far I managed to compile two of the tutorial lessons from lazyfoo.net.

    This is my makefile for compiling the first two OpenGL tutorials from lazyfoo.net:

    opengl:
    	gcc -Wall -ansi -pedantic LUtil.cpp main.cpp -o main -lOpenGL32 -lglu32 -lfreeglut && ./main
    opengl_static:
    	gcc -Wall -ansi -pedantic LUtil.cpp main.cpp -o main -D FREEGLUT_STATIC -lfreeglut_static -lwinmm -lgdi32 -lOpenGL32 -lglu32 && ./main

    Here are the links to the tutorials where I got the first two lessons.

    https://lazyfoo.net/tutorials/OpenGL/01_hello_opengl/index2.phphttps://lazyfoo.net/tutorials/OpenGL/02_matrices_and_coloring_polygons/index.php

    The source code of those tutorials is split into 4 files and lazyfoo is really picky about people not sharing the source code anywhere else. But as you can see from the following screenshot I got it working!



  • Programming without the Mouse using Vim

    I have achieved a major milestone. I can now work on my programming even when my mouse fails! Vim is a great text editor with syntax highlighting that also allows for running commands! In my case I use :!make to run the script that compiles and runs my code!

    My “Infinity Checkerboard” project has come very far from what it was. I can do incredible things as I learn more of the SDL library. Although this game does not contain much, the source code is very small and only requires the base SDL library with no extensions and a working C compiler.

    I hope that others benefit from this video both as an example of the power of SDL and the C programming language but also as an example of using Vim as a text editor.

  • Deleting Cygwin

    Now I know where all my disk space went! I have not been using cygwin ever since msys provided all my programming needs and can compile my SDL,Allegro, and SFML programs from a Unix environment just fine. I’m deleting cygwin to recover some disk space but still it was a very good Unix environment for what I used it for. I highly recommend programmers try out projects like msys and cygwin for that Unix/Linux feel if they’ve done programming on Linux and like the way it worked.

    https://www.msys2.org/
    https://cygwin.com/

    Also, there is the Windows Subsystem for Linux as well. I have little experience with it but that’s another cool way to do Linux things from within Windows.
    My ideal goal when it comes to computer usage is that I’ll eventually buy a brand new computer capable of running the most intense games in my Steam library that won’t run on this computer but also use these tools I mentioned to compile open source games for the fun of it.
    There is something very satisfying about being someone who plays games but also understands a lot of computer programming and how they are built from source code. Back in my Ubuntu Linux days there was a game I played and even changed the source code of to play with it.

    https://www.supertux.org/

    I remember the time I changed the gravity floating point variable and was floating above the screen. I love playing games and I love messing with computer software and testing programming languages. There is a lot to live for and I’m so glad to be free from pain and will do my best to enjoy my life.

    I remember the time I changed the gravity floating point variable and was floating above the screen. I love playing games and I love messing with computer software and testing programming languages. There is a lot to live for and I’m so glad to be free from pain and will do my best to enjoy my life.

  • Life/Recovery Update 9-28-2020

    Here is an official update on how I’m feeling. I am mostly back to the way I was before surgery except that if I squat it pulls on the skin where the incision is and breaks the glue. If I walk far my underwear rubs on it and can cause it to bleed. So for these reasons I stay home and don’t usually wear anything down there so nothing can rub and hurt it. But aside from that I feel good and have lots of food I can eat and lots of fruit juice and soy milk to drink. I’ll just be staying home most of the time and computer programming or playing Super Mario Galaxy. Still I’m super bummed out about missing work because it’s still a loss of income and I have to transfer money from my other bank accounts so I can pay rent/bills. But it’s worth it because I’ve never felt better. Now I’m pain free and have my adult life in my apartment and a good job to go back to when I am ready.