Skip to content

Commit

Permalink
Add license info
Browse files Browse the repository at this point in the history
  • Loading branch information
gw3583 committed Feb 10, 2016
1 parent 84090dd commit c9ff21e
Show file tree
Hide file tree
Showing 57 changed files with 586 additions and 4,723 deletions.
374 changes: 374 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

54 changes: 0 additions & 54 deletions benches/bench_clip.rs

This file was deleted.

184 changes: 0 additions & 184 deletions benches/polygons.in

This file was deleted.

4,443 changes: 0 additions & 4,443 deletions benches/rectangles.dat

This file was deleted.

4 changes: 4 additions & 0 deletions res/blend.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

vec3 Multiply(vec3 Cb, vec3 Cs) {
return Cb * Cs;
}
Expand Down
4 changes: 4 additions & 0 deletions res/blend.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vColorTexCoord = aColorTexCoordRectTop.xy;
Expand Down
4 changes: 4 additions & 0 deletions res/blit.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vec4 diffuse = Texture(sDiffuse, vColorTexCoord);
Expand Down
4 changes: 4 additions & 0 deletions res/blit.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vColor = aColorRectTL / 255.0;
Expand Down
4 changes: 4 additions & 0 deletions res/blur.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// `vBorderPosition` is the position of the source texture in the atlas.

float gauss(float x, float sigma) {
Expand Down
4 changes: 4 additions & 0 deletions res/blur.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vColorTexCoord = aColorTexCoordRectTop.xy;
Expand Down
4 changes: 4 additions & 0 deletions res/border.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

/*
Ellipse equation:
Expand Down
4 changes: 4 additions & 0 deletions res/border.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vColor = aColorRectTL;
Expand Down
4 changes: 4 additions & 0 deletions res/box_shadow.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// See http://asciimath.org to render the equations here.

// The Gaussian function used for blurring:
Expand Down
4 changes: 4 additions & 0 deletions res/box_shadow.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vPosition = aPosition.xy;
Expand Down
4 changes: 4 additions & 0 deletions res/clear.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
SetFragColor(vColor);
Expand Down
4 changes: 4 additions & 0 deletions res/clear.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vColor = aColorRectTL / 255.0;
Expand Down
4 changes: 4 additions & 0 deletions res/debug_color.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
SetFragColor(vColor);
Expand Down
4 changes: 4 additions & 0 deletions res/debug_color.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vColor = aColorRectTL;
Expand Down
4 changes: 4 additions & 0 deletions res/debug_font.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
#ifdef SERVO_ES2
Expand Down
4 changes: 4 additions & 0 deletions res/debug_font.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vColor = aColorRectTL;
Expand Down
4 changes: 4 additions & 0 deletions res/es2_common.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#version 110

#define SERVO_ES2
Expand Down
4 changes: 4 additions & 0 deletions res/es2_common.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#version 110

#define SERVO_ES2
Expand Down
4 changes: 4 additions & 0 deletions res/filter.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

vec3 rgbToHsv(vec3 c) {
float value = max(max(c.r, c.g), c.b);

Expand Down
4 changes: 4 additions & 0 deletions res/filter.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vColorTexCoord = aColorTexCoordRectTop.xy;
Expand Down
4 changes: 4 additions & 0 deletions res/gl3_common.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#version 150

#define SERVO_GL3
Expand Down
4 changes: 4 additions & 0 deletions res/gl3_common.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#version 150

#define SERVO_GL3
Expand Down
4 changes: 4 additions & 0 deletions res/mask.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
SetFragColor(vColor);
Expand Down
4 changes: 4 additions & 0 deletions res/mask.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vColor = aColorRectTL / 255.0;
Expand Down
4 changes: 4 additions & 0 deletions res/quad.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

// GLSL point in rect test.
// See: https://stackoverflow.com/questions/12751080/glsl-point-inside-box-test
bool PointInRect(vec2 p, vec2 p0, vec2 p1)
Expand Down
4 changes: 4 additions & 0 deletions res/quad.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

vec2 SnapToPixels(vec2 pos)
{
// Snap the vertex to pixel position to guarantee correct texture
Expand Down
4 changes: 4 additions & 0 deletions res/tile.fs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void) {
vec2 textureSize = vBorderPosition.zw - vBorderPosition.xy;
vec2 colorTexCoord = vBorderPosition.xy + mod(vColorTexCoord.xy, 1.0) * textureSize;
Expand Down
4 changes: 4 additions & 0 deletions res/tile.vs.glsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

void main(void)
{
vColorTexCoord = aBorderRadii.xy;
Expand Down
4 changes: 4 additions & 0 deletions src/aabbtree.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use euclid::{Point2D, Rect, Size2D};
use internal_types::{CompiledNode, DrawListId, DrawListItemIndex, DrawListGroupId};
use resource_list::ResourceList;
Expand Down
4 changes: 4 additions & 0 deletions src/batch.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use device::{ProgramId, TextureId, TextureFilter};
use euclid::{Point2D, Rect, Size2D};
use internal_types::{MAX_RECT, AxisDirection, PackedVertexColorMode, PackedVertexForQuad};
Expand Down
4 changes: 4 additions & 0 deletions src/batch_builder.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use app_units::Au;
use batch::{BatchBuilder, TileParams};
use device::TextureId;
Expand Down
4 changes: 4 additions & 0 deletions src/debug_font_data.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#[derive(Debug)]
pub struct BakedGlyph {
pub x0: u32,
Expand Down
4 changes: 4 additions & 0 deletions src/debug_render.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use debug_font_data;
use device::{Device, ProgramId, VAOId, TextureId, VertexFormat};
use device::{TextureFilter, VertexUsageHint};
Expand Down
4 changes: 4 additions & 0 deletions src/device.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use euclid::Matrix4;
use fnv::FnvHasher;
use gleam::gl;
Expand Down
4 changes: 4 additions & 0 deletions src/frame.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use app_units::Au;
use batch::{MAX_MATRICES_PER_BATCH, OffsetParams};
use device::{TextureId, TextureFilter};
Expand Down
4 changes: 4 additions & 0 deletions src/freelist.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#[derive(Debug, Copy, Clone, PartialEq, Eq, Hash)]
pub struct FreeListItemId(u32);

Expand Down
4 changes: 4 additions & 0 deletions src/geometry.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */

use euclid::{Rect, Point3D};

/*
Expand Down
Loading

0 comments on commit c9ff21e

Please sign in to comment.