new crosshair + minor refactor
This commit is contained in:
@@ -175,6 +175,9 @@ void Window::setBlendMode(blendmode mode) {
|
||||
case blendmode::addition:
|
||||
glBlendFunc(GL_SRC_ALPHA, GL_ONE);
|
||||
break;
|
||||
case blendmode::inversion:
|
||||
glBlendFunc(GL_ONE_MINUS_DST_COLOR, GL_ONE_MINUS_SRC_ALPHA);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ struct DisplaySettings;
|
||||
struct GLFWmonitor;
|
||||
|
||||
enum class blendmode {
|
||||
normal, addition
|
||||
normal, addition, inversion
|
||||
};
|
||||
|
||||
class Window {
|
||||
|
||||
Reference in New Issue
Block a user