Lines Matching defs:const
81 int getMajorVersion (void) const { return int((m_bits>>MAJOR_SHIFT) & ((1u<<MAJOR_BITS)-1u)); }
82 int getMinorVersion (void) const { return int((m_bits>>MINOR_SHIFT) & ((1u<<MINOR_BITS)-1u)); }
83 Profile getProfile (void) const { return Profile((m_bits>>PROFILE_SHIFT) & ((1u<<PROFILE_BITS)-1u)); }
85 bool operator== (ApiType other) const { return m_bits == other.m_bits; }
86 bool operator!= (ApiType other) const { return m_bits != other.m_bits; }
88 deUint32 getPacked (void) const { return m_bits; }
150 ApiType getAPI (void) const { return ApiType::fromBits(m_bits & ((1u<<TOTAL_API_BITS)-1u)); }
151 void setAPI (const ApiType& apiType) { m_bits = apiType.getPacked(); }
153 ContextFlags getFlags (void) const { return ContextFlags((m_bits>>FLAGS_SHIFT) & ((1u<<FLAGS_BITS)-1u)); }
199 const char* getApiTypeDescription (ApiType type);
211 virtual ContextType getType (void) const = DE_NULL;
214 virtual const glw::Functions& getFunctions (void) const = DE_NULL;
217 virtual const tcu::RenderTarget& getRenderTarget (void) const = DE_NULL;
223 virtual deUint32 getDefaultFramebuffer (void) const { return 0; }
226 virtual glw::GenericFuncType getProcAddress (const char* name) const;
232 RenderContext (const RenderContext& other); // Not allowed!
233 RenderContext& operator= (const RenderContext& other); // Not allowed!
238 RenderContext* createRenderContext (tcu::Platform& platform, const tcu::CommandLine& cmdLine, const RenderConfig& config, const RenderContext* sharedContext = DE_NULL);
239 RenderContext* createDefaultRenderContext (tcu::Platform& platform, const tcu::CommandLine& cmdLine, ApiType apiType);
241 void initCoreFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType);
242 void initExtensionFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType, int numExtensions, const char* const* extensions);
246 void initFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType);
247 void initExtensionFunctions (glw::Functions* dst, const glw::FunctionLoader* loader, ApiType apiType);
249 bool hasExtension (const glw::Functions& gl, ApiType apiType, const std::string& extension);