Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add line error checking; rename shader folder env variable; refactor ellipse #39

Open
wants to merge 14 commits into
base: master
Choose a base branch
from

Conversation

fayalalebrun
Copy link
Contributor

@fayalalebrun fayalalebrun commented Dec 13, 2018

I've had to remake this from #38, since I named a commit wrongly, and thus I had to force push into my master branch in order to fix it. Here are the comments that I had left until then:

Checking for OpenGL errors is now performed sporadically in the Line
class.
-The noexcept specifier was removed from various functions, which now
can throw exceptions.
-In any function where OpenGL is called, the function to check errors
from utilities is called.

I've renamed the shader folder environment variable to MXD_SHADER_ROOT, in order to avoid conflicting with environment variables which are part of other programs.

Fixes #36.
Resolves #16.

Checking for OpenGL errors is now performed sporadically in the Line
class.
-The noexcept specifier was removed from various functions, which now
can throw exceptions.
-In any function where OpenGL is called, the function to check errors
from utilities is called.
Shader folder environment variable renamed to MXD_SHADER_ROOT
@fayalalebrun fayalalebrun requested a review from arrieta December 13, 2018 19:34
@fayalalebrun
Copy link
Contributor Author

I have removed TODOs related to the shader functionality since I have addressed these issues previously (I think). If the shader and program classes require further changes to be usable, please let me know.

The ellipse class has been refactored in order to comply with the
pimpl idiom and the changes observed in the line class.

The names of the parameters taken have been changed in order to comply
with project naming standards as well as the astronomical definition
of an ellipse.
@fayalalebrun fayalalebrun changed the title Add line error checking; rename shader folder env variable Add line error checking; rename shader folder env variable; refactor ellipse Dec 13, 2018
@fayalalebrun
Copy link
Contributor Author

I have refactored ellipse in order to follow the pimpl idiom and according to the changes to the line class.

I have also changed the parameter names in order to follow project naming conventions.

@fayalalebrun
Copy link
Contributor Author

I've removed the geometry failing test, as there is nothing to test in this class.

@fayalalebrun
Copy link
Contributor Author

I modified the get_env_var() function to throw an exception if an environment variable is not found. I think this will help us more easily identify error related to this.

I added a couple of tests relating to this function, including one which makes sure that SHADER_ROOT is set.

@fayalalebrun
Copy link
Contributor Author

I've added a method to emplace shaders directly into the program class, in order to improve the way shaders are used in the program. Also, I've added a couple of tests for program which now means that all methods in program are tested.

@fayalalebrun
Copy link
Contributor Author

I've added a more extensive error message in case program creation fails, in order to solve a TODO.

Added tests to line in order to cover all methods offered by this class.
Added a part to shader test that checks if the is_compiled method
returns the correct value.
The ellipse tests have been updated to ensure the testing of the
set_color function.
@fayalalebrun
Copy link
Contributor Author

I've updated the line, shader and ellipse tests in order to ensure that all methods in these classes are tested.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix variable naming Implement ellipse component
1 participant