This document contains code examples demonstrating the use of OpenGL functions to draw points and lines. The first example draws two points with different colors. The second draws four points with varying sizes and colors. The third draws two red and green lines. The fourth draws a cross shape using four colored lines. All examples initialize an OpenGL window, clear the buffer, set point/line sizes, draw with GL_POINTS or GL_LINES, and enter the main loop.