Nebula
Loading...
Searching...
No Matches
shaderpagehandler.h
Go to the documentation of this file.
1#pragma once
2#ifndef DEBUG_SHADERPAGEHANDLER_H
3#define DEBUG_SHADERPAGEHANDLER_H
4//------------------------------------------------------------------------------
21#include "coregraphics/shader.h"
23
24//------------------------------------------------------------------------------
25namespace Debug
26{
28{
30public:
34 virtual void HandleRequest(const Ptr<Http::HttpRequest>& request);
35
36private:
38 Http::HttpStatus::Code HandleShaderInfoRequest(const Util::String& resId, const Ptr<IO::Stream>& responseContentStream);
41};
42
43} // namespace Debug
44//------------------------------------------------------------------------------
45#endif
Provide a HTML debug page for shaders.
Definition shaderpagehandler.h:28
Http::HttpStatus::Code HandleShaderInfoRequest(const Util::String &resId, const Ptr< IO::Stream > &responseContentStream)
display information about specific shader
Definition shaderpagehandler.cc:107
__DeclareClass(ShaderPageHandler)
void WriteShaderVariableTable(const Ptr< Http::HtmlPageWriter > &htmlWriter, const CoreGraphics::ShaderId shader)
write a shader variable table to the HTML stream
Definition shaderpagehandler.cc:223
ShaderPageHandler()
constructor
Definition shaderpagehandler.cc:29
virtual void HandleRequest(const Ptr< Http::HttpRequest > &request)
handle a http request, the handler is expected to fill the content stream with response data
Definition shaderpagehandler.cc:40
HttpRequestHandlers are attached to the HttpServer and process incoming HTTP requests.
Definition httprequesthandler.h:31
Code
status codes
Definition httpstatus.h:24
Nebula's smart pointer class which manages the life time of RefCounted objects.
Definition ptr.h:38
Definition corepagehandler.cc:13
A shader represents an entire shader resource, containing several stages and programs.
Definition shader.h:51
Nebula's universal string class.
Definition string.h:50