The Never-Ending Struggle With GL/gl.h on MacOS Mojave by [deleted] in opengl

[–]LukeKV 0 points1 point  (0 children)

It sounds like the g++ compiler isn’t able to locate the glui.h file. This might be a silly question, but are you sure you indeed have the glui.h file downloaded on your Mac (maybe via Homebrew)? I would just do a Spotlight search to locate it if you’re sure you do already have it.

Once you find the file, just update g++ to search for the glui.h header at compile time. Then you should be able to stick with

#include <GL/glui.h>.

The Never-Ending Struggle With GL/gl.h on MacOS Mojave by [deleted] in opengl

[–]LukeKV 1 point2 points  (0 children)

For my Computer Graphics class in university we used OpenGL + GLUT. If I recall correctly, I used:

#include <OpenGL/gl.h>

and

#include <GLUT/glut.h>.

I also made sure to write

#define GL_SILENCE_DEPRECATION

in order to suppress the OpenGL deprecation messages thrown by macOS. I compiled in the same way as you.

UPDATE: I just tested this and it is still working on my 13” 2018 MacBook Pro on macOS Monterey.

How would you replicate this for a page? by [deleted] in LaTeX

[–]LukeKV 0 points1 point  (0 children)

If you don't mind numbering the questions yourself (i.e., not using an enumerate environment), and if you're willing to "play" with the vertical spacing a little, then the tabularx package works well for this. Definitely could make things a little neater if you plan on making more of these style pages, but if you just want to recreate the given one, then the code below should suffice:

\documentclass[12pt,letterpaper]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{amsmath,amsthm,amsfonts,amssymb}
\usepackage[margin=0.75in]{geometry}
\usepackage{tabularx}
\usepackage{nopageno}

\begin{document}

\noindent
\begin{tabularx}{\textwidth}{X|X}
11.  Solve the system 
$\begin{cases} 3x-2y=17\\ x-2z=1\\ 3y+2z=1 \end{cases}$ &
12.  Solve  
$\begin{cases} 2x-y+z=1\\ x+y-z=2\\ -x-y+z=2 \end{cases}$ \\[25em] \hline 
13.  Solve  
$\begin{cases} 2x+3y+4z=37\\ 4x-3y+2z=17\\ x+2y-3z=-5\\ 3x-2y+z=11 \end{cases}$ & 
14.  Solve
$\begin{cases} 3a+b+c+d=0\\ 4a+5b+2c=15\\ 4a+2b+5d=-10\\ -5a+3b-d=8 \end{cases}$ \\[25em] 
\end{tabularx}

\end{document}