Skip to content
This repository has been archived by the owner on Aug 15, 2023. It is now read-only.

Limit the number of keystrokes when creating glclear tool #118

Open
elgopher opened this issue May 17, 2020 · 0 comments
Open

Limit the number of keystrokes when creating glclear tool #118

elgopher opened this issue May 17, 2020 · 0 comments

Comments

@elgopher
Copy link
Owner

elgopher commented May 17, 2020

At the moment developer has to write following code to instantiate glclear tool:

clearTool := glclear.New(gl.Context().NewClearCommand())

Thats a lot. We can simplify this piece of code to something like this:

clearTool := glclear.New(gl.Context())

What is needed is the new interface in glclear package:

type glContext interface {
    NewClearCommand() *gl.ClearCommand
}
@elgopher elgopher added enhancement New feature or request refactoring and removed enhancement New feature or request labels May 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant