Batch &Batch::append(unsigned i)
{
append_index(i);
-
+
update_offset();
dirty = true;
public:
Bloom(unsigned, unsigned);
-
+
/** Sets the σ value of the gaussian blur. Values much larger than 4.0 are
likely to cause artifacts. */
void set_radius(float);
namespace GL {
/**
-Processes oversaturated colors to preserve hues. When one color component
+Processes oversaturated colors to preserve hues. When one color component
exceeds 1.0, the others are scaled towards white. A transition curve is also
applied near 1.0 to prevent the abrupt change in the gradient.
};
unsigned code;
- float x1,y1;
- float x2,y2;
- float w,h;
+ float x1, y1;
+ float x2, y2;
+ float w, h;
float off_x, off_y;
float advance;
};
}
const Framebuffer *Framebuffer::current()
-{
+{
if(!cur_obj)
cur_obj = &system();
return cur_obj;
{
public:
Loader(Material &);
-
+
private:
void ambient(float, float, float, float);
void diffuse(float, float, float, float);
public:
MtxStack(Renderer &);
- private:
+ private:
virtual void update();
};
{
public:
InheritLoader(Technique &, Collection &);
-
+
private:
void texture(const std::string &, const std::string &);
};
/** Allocates storage for the texture. The contents are initially
undefined. If storage has already been allocated, does nothing. */
void allocate(unsigned level);
-
+
/** Uploads an image to the texture. Storage must be defined beforehand.
The image data must have dimensions and format compatible with the defined
storage. */
/** Allocates storage for the texture. The contents are initially
undefined. If storage has already been allocated, does nothing. */
void allocate(unsigned level);
-
+
/** Uploads an image to the texture. Storage must be defined beforehand.
The image data must have dimensions and format compatible with the defined
storage. */