Документация:
https://www.opengl.org/sdk/docs/
https://www.opengl.org/wiki/Main_Page
https://www.opengl.org/registry/
http://docs.gl/
https://github.com/g-truc/ogl-samples
Тьюториалы:
<?php | |
$address = '0.0.0.0'; | |
$port = 12345; | |
// Create WebSocket. | |
$server = socket_create(AF_INET, SOCK_STREAM, SOL_TCP); | |
socket_set_option($server, SOL_SOCKET, SO_REUSEADDR, 1); | |
socket_bind($server, $address, $port); | |
socket_listen($server); |
// main.cpp | |
// RSA | |
// | |
// Created by Sergiy on 06.06.17. | |
#include <iostream> | |
#include <math.h> | |
#include <string.h> | |
#include <string> | |
#include <stdio.h> |
/* | |
** | |
** Example of Interprocess communication in Node.js through a UNIX domain socket | |
** | |
** Usage: | |
** server> MODE=server node ipc.example.js | |
** client> MODE=client node ipc.example.js | |
** | |
*/ |
#! /usr/bin/env python | |
# -*- coding: utf-8 -*- | |
"""This module's docstring summary line. | |
This is a multi-line docstring. Paragraphs are separated with blank lines. | |
Lines conform to 79-column limit. | |
Module and packages names should be short, lower_case_with_underscores. | |
Notice that this in not PEP8-cheatsheet.py |
Data size: 1000 000 points times 2 coords + 3 color values: | |
Load time for 1 arrays of 1000000 points = 39.8480000148993 | |
Load time for 10 arrays of 100000 points = 57.4979999801144 | |
Load time for 100 arrays of 10000 points = 53.67699998896569 | |
Load time for 1000 arrays of 1000 points = 184.61100000422448 | |
Load time for 10000 arrays of 100 points = 1469.6359999943525 | |
Draw time for 1 arrays of 1000000 points = 0.15499998698942363 | |
Draw time for 10 arrays of 100000 points = 0.3859999997075647 |
// Simulate a call to Dropbox or other service that can | |
// return an image as an ArrayBuffer. | |
var xhr = new XMLHttpRequest(); | |
// Use JSFiddle logo as a sample image to avoid complicating | |
// this example with cross-domain issues. | |
xhr.open( "GET", "http://fiddle.jshell.net/img/logo.png", true ); | |
// Ask for the result as an ArrayBuffer. | |
xhr.responseType = "arraybuffer"; |
// C# example program to demonstrate OpenTK | |
// | |
// Steps: | |
// 1. Create an empty C# console application project in Visual Studio | |
// 2. Place OpenTK.dll in the directory of the C# source file | |
// 3. Add System.Drawing and OpenTK as References to the project | |
// 4. Paste this source code into the C# source file | |
// 5. Run. You should see a colored triangle. Press ESC to quit. | |
// | |
// Copyright (c) 2013 Ashwin Nanjappa |