// Copyright (C) 2012-2013 ChaosForge / Kornel Kisielewicz // http://chaosforge.org/ // // This file is part of NV Libraries. // For conditions of distribution and use, see copyright notice in nv.hh /** * @file device.hh * @author Kornel Kisielewicz epyon@chaosforge.org * @brief Device class */ #ifndef NV_DEVICE_HH #define NV_DEVICE_HH #include #include #include #include namespace nv { class window; class program; class device { public: virtual window* create_window( uint16 width, uint16 height ) = 0; virtual program* create_program( const string& vs_source, const string& fs_source ) = 0; virtual vertex_buffer* create_vertex_buffer( buffer_hint hint, int size, void* source = nullptr ) = 0; virtual index_buffer* create_index_buffer( buffer_hint hint, int size, void* source = nullptr ) = 0; virtual vertex_array* create_vertex_array() = 0; virtual texture2d* create_texture2d( ivec2 size, image_format aformat, datatype adatatype, sampler asampler, void* data = nullptr ) = 0; }; } // namespace nv #endif // NV_DEVICE_HH