<commit_before>#ifndef GRAPHICSDEVICE_HPP_INCLUDED
#define GRAPHICSDEVICE_HPP_INCLUDED

#include "graphicsresource.hpp"
#include "vertexattribute.hpp"

#include <string>
#include <vector>

namespace gst
{
    class Color;
    class Image;
    class Resolution;
    class ShadowedData;
    class Texture;
    class Texture2D;
    class TextureCube;
    class Viewport;

    enum class AttachmentType;
    enum class AttachmentPoint;
    enum class BlendMode;
    enum class BufferTarget;
    enum class CubeFace;
    enum class CullFace;
    enum class DataUsage;
    enum class DrawMode;
    enum class PixelFormat;
    enum class RenderbufferFormat;
    enum class ShaderType;
    enum class TextureFormat;
    enum class TextureTarget;

    // The responsibility of this class is to interact with a graphics card.
    class GraphicsDevice {
    public:
        virtual ~GraphicsDevice() = default;

        // Clear buffers to present values.
        virtual void clear(bool color, bool depth) = 0;

        // Set clear values for color buffers.
        virtual void set_clear_color(Color const & clear_color) = 0;
        // Set blend mode enabled/disabled with appropiate blend function.<commit_msg>change clear comment<commit_after>#ifndef GRAPHICSDEVICE_HPP_INCLUDED
#define GRAPHICSDEVICE_HPP_INCLUDED

#include "graphicsresource.hpp"
#include "vertexattribute.hpp"

#include <string>
#include <vector>

namespace gst
{
    class Color;
    class Image;
    class Resolution;
    class ShadowedData;
    class Texture;
    class Texture2D;
    class TextureCube;
    class Viewport;

    enum class AttachmentType;
    enum class AttachmentPoint;
    enum class BlendMode;
    enum class BufferTarget;
    enum class CubeFace;
    enum class CullFace;
    enum class DataUsage;
    enum class DrawMode;
    enum class PixelFormat;
    enum class RenderbufferFormat;
    enum class ShaderType;
    enum class TextureFormat;
    enum class TextureTarget;

    // The responsibility of this class is to interact with a graphics card.
    class GraphicsDevice {
    public:
        virtual ~GraphicsDevice() = default;

        // Clear buffers.
        virtual void clear(bool color, bool depth) = 0;

        // Set clear values for color buffers.
        virtual void set_clear_color(Color const & clear_color) = 0;
        // Set blend mode enabled/disabled with appropiate blend function.
{'fraction_non_alphanumeric': 0.0592407175636212, 'fraction_numerical': 0.0025031289111389237, 'mean_word_length': 3.078231292517007, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3270419', 'n_tokens_mistral': 681, 'n_tokens_neox': 656, 'n_words': 236}