Skip to content
This repository was archived by the owner on Aug 15, 2023. It is now read-only.
This repository was 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

Description

@elgopher

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
}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions