This commit is contained in:
Бранимир Караџић 2019-02-07 18:04:28 -08:00
parent 82550fa842
commit cda981b8e3
7 changed files with 22 additions and 21 deletions

View File

@ -59,8 +59,9 @@ struct Grid
float m_normal[3];
};
// Triangulation tables taken from:
// http://paulbourke.net/geometry/polygonise/
// Reference(s):
// - Polygonising a scalar field
// https://web.archive.org/web/20181127124338/http://paulbourke.net/geometry/polygonise/
static const uint16_t s_edges[256] =
{

View File

@ -1,14 +1,14 @@
/*
* Copyright 2014 Kai Jourdan. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*
* Based on code from Brian Luczkiewicz
* https://github.com/blucz/Vector
*
* Uses the SIMPLEX-Font which is a variant of the Hershey font (public domain)
* http://paulbourke.net/dataformats/hershey/
*/
// Reference(s):
// - Based on code from Brian Luczkiewicz
// https://github.com/blucz/Vector
// - Uses the SIMPLEX-Font which is a variant of the Hershey font (public domain)
// https://web.archive.org/web/20120313001837/http://paulbourke.net/dataformats/hershey/
//
#include <float.h> // FLT_EPSILON
#include <alloca.h> // alloca

View File

@ -1,12 +1,6 @@
/*
* Copyright 2014 Kai Jourdan. All rights reserved.
* License: https://github.com/bkaradzic/bgfx#license-bsd-2-clause
*
* Based on code from Brian Luczkiewicz
* https://github.com/blucz/Vector
*
* Uses the SIMPLEX-Font which is a variant of the Hershey font (public domain)
* http://paulbourke.net/dataformats/hershey/
*/
#ifndef __VECTORDISPLAY_H__

View File

@ -491,7 +491,9 @@ public:
const uint32_t kNum = 9;
const int kNumColors = 5;
const float color[4*kNumColors] =
{ // Palette: http://www.colourlovers.com/palette/3647908/RGB_Ice_Cream
{ // Reference(s):
// - Palette
// https://web.archive.org/web/20180219034657/http://www.colourlovers.com/palette/3647908/RGB_Ice_Cream
0.847f*0.2f, 0.365f*0.2f, 0.408f*0.2f, 1.0f,
0.976f*0.2f, 0.827f*0.2f, 0.533f*0.2f, 1.0f,
0.533f*0.2f, 0.867f*0.2f, 0.741f*0.2f, 1.0f,

View File

@ -134,7 +134,7 @@ namespace bgfx { namespace gl
//
// An application can only set the pixel format of a window one time.
// Once a window's pixel format is set, it cannot be changed.
// MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/dd369049%28v=vs.85%29.aspx
// MSDN: https://web.archive.org/web/20190207230357/https://docs.microsoft.com/en-us/windows/desktop/api/wingdi/nf-wingdi-setpixelformat
HWND hwnd = CreateWindowA("STATIC"
, ""
, WS_POPUP|WS_DISABLED

View File

@ -717,8 +717,8 @@ namespace bgfx
}
// dxbc hash function is slightly modified version of MD5 hash.
// https://tools.ietf.org/html/rfc1321
// http://www.efgh.com/software/md5.txt
// https://web.archive.org/web/20190207230524/https://tools.ietf.org/html/rfc1321
// https://web.archive.org/web/20190207230538/http://www.efgh.com/software/md5.txt
//
// Assumption is that data pointer, size are both 4-byte aligned,
// and little endian.

View File

@ -477,6 +477,8 @@ int main(int _argc, const char* _argv[])
data[size] = '\0';
fclose(file);
// Reference(s):
// - Wavefront .obj file
// https://en.wikipedia.org/wiki/Wavefront_.obj_file
Vec3Array positions;
@ -551,6 +553,8 @@ int main(int _argc, const char* _argv[])
texcoord.set(texcoord.getPtr() + 1, normal.getPtr());
// Reference(s):
// - Wavefront .obj file / Vertex normal indices without texture coordinate indices
// https://en.wikipedia.org/wiki/Wavefront_.obj_file#Vertex_Normal_Indices_Without_Texture_Coordinate_Indices
if (!texcoord.isEmpty())
{