I am taking a graphics class at my University. For the latest assignment, we are required to implement the functionality of a depth buffer for rendering our geometry. However, this assignment is supposed to be implemented in OpenGL using a separate set of skeleton code. Because I am more familiar with DirectX I would like to implement it in that API. That being said, I am wondering if there is a way to replace the standard depth-stencil functionality of DirectX with my own code (which will do the same thing) in order to complete the requirements of the assignment?