Hello, /g/!
I'm currently having fun with OpenGL in C++, making squares, triangles, making a point take the coords of my mouse and shit like that.
Currently, all the coords of the stuff I draw are hardcoded, so I'd like to implement some sort of input in the window that can retrieve data for the rendering part.
What library do you recommend? I'm working on Linux, btw.
current progress
using freeglut and glew
>>58156532
post code OP, also I recommend OpenAL for sound, maybe SDL, just post code and progress
>>58156991
here's the whole file#include <cstdio>
#include <GL/glew.h>
#include <GL/freeglut.h>
double mouse_x = 0,
mouse_y = 0;
void mouseMove( int x, int y ) {
mouse_x = x;
mouse_y = y;
}
void renderScene( ) {
glClear( GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT );
double x = ( mouse_x / 320 - 1 ),
y = -( mouse_y / 140 - 1 );
glBegin( GL_TRIANGLES );
glVertex3f( 0, 0, 1 );
glVertex3f( 1, -1, 0 );
glVertex3f( x, y, 0 );
glEnd();
glutSwapBuffers();
}
int main ( int argc, char** argv ) {
glutInit ( &argc, argv );
glutInitDisplayMode ( GLUT_SINGLE | GLUT_RGB );
glutInitWindowPosition ( 1100, 100 );
glutInitWindowSize ( 640, 280 );
glutCreateWindow ( "GL_VERSION" );
glutDisplayFunc( renderScene );
glutPassiveMotionFunc( mouseMove );
glutIdleFunc( renderScene ) ;
glewInit();
printf( "OpenGL version supported by this platform: (%s) \n", glGetString( GL_VERSION ) );
printf( "GLSL version supported by this platform: (%s) \n", glGetString(GL_SHADING_LANGUAGE_VERSION ) );
glutMainLoop ( );
return 0;
}
currently looking into SDL, but I don't think it will help that much. Gonna look into GUI libs later
I boot this computer about once a year when I'm visiting my folks for christmas
This is the /g/ that was cached in firefox (also tabs)
rate
I remember the first thread.
>>58156475
Maki fags have already been here for a year
>>58157498
Source?
>manufactured on 10nm Samsung process
>40% performance improvement over Snapdragon 821
>30% longer battery life over Snapdragon 821
>HTC 11 will be the first Snapdragon 835 device to ship
How do you feel about this?
>>58156274
>30% longer battery life
Which somehow makes companies think 30% smaller batteries
If they make it to 10nm before Intel I will be impressed.
>>58157209
But 1.3^–1 = 0.77, anon. That's only a 23% smaller battery.
>I'm SO poor I think buying a fruity toddler toy from Apple on a $29/mo plan is a symbol of "wealth"
>>58156213
Must suck being poor and angry and not being able to afford to pay for nice things in full.
>>58156659(You)
>>58156659
>t. mactoddler
Does anybody unironically use hybrid drives? If so, wha are they good for?
absolutely nothing
do they let you pick whether files go onto the hdd or ssd?
>all of the problems with both HDDs and SSDs
>none of the speeds
>none of the reliability
>none of the great price/Gb
So if Fedora were to re-brand, what would they call them selves?
PS I don't work for redhat
>>58156116
memehat
Trilby
>>58156116
Snapbacks OS
>man...I really want an S7. They're only $40 a month at verizon and I'm up for an upgrade.
you know there are great budget Android phones that you can just buy outright for $350 or less?
>I don't know man...
I do know. It's basically my hobby and interest to know. I use a oneplus 2 and I'm just fine. The oneplus 3 and zaxon 7 have the same specs as the s7 if not better.
>yeah but that s7, man.
Yeah?... yeah!?
S7 takes better photos famalam
That's all normies care about
I just let my dumb friends waste their money
Not my fucking problem
I know a retard who owns an iphone 7 and he doesn't even have a job. The fucking faggot gets all his news from John Oliver and the daily show and wont shut the hell up about his liberal douchebag arguments.
Christmas edition
Old Thread: >>58151380
>Not sure what private trackers are all about?
The mission of /ptg/ is to promote the highest possible standards of tracker service by providing members with opportunities for professional development, by recognizing technical competence through examinations and by advancing the interests of its members.
>Have a question?
FAQ http://pastebin.com/LQxkS1mU
WIKI https://wiki.installgentoo.com/index.php/Private_trackers
MORE https://gitla.in/ptgGuide/ptgGuide/tree/master
Use >>>/g/ptg as a link to find the /ptg/ thread.
Remember the following:
>Staff occasionally read these generals and have posted here before.
>This is a thread for educational purposes only don't offer or ask for invites.
>Staff may pretend to be normal users asking for invites and when you invite them, they ban you for inviting strangers.
>Have a very merry Christmas indeed
>hes not on pth
first for PTH
third for ourgirl
What did /g/ get for Christmas?
>>58155982
nothing as always
>>58155982
Nothing. I wished I had a gf.
>>58155996
a gf isn't even good to have. you're with her to be happy, she's with you for any other reason, because girls know how to make themselves happy and don't need you.
get over it, be happy alone, fuck a prostitute if you need to get laid, you will never find happiness in a lady because they don't get into relationships like guys do.
So now that Zen is confirmed to be an overhyped pile of shit in an Indian street, Skylake EP when?
>>58155971
Hollywood needs to be nuked. Nothing could be a worse idea than that.
>>58155971
>Skylake EP
What?
>>58155997
>trump elected emperor
>nothing is worse than a cartoon
you sure are delusional
>AMD's reputation since their 2xx series is so terrible that the majority of AMD's GPU market share are still 7xxx owners.
Really makes you think.
I own a Sapphire HD 7950. I have no need to upgrade, yet.
Might get an RX 480 sometime next year, June or July.
>no RX 4xx
what the fuck
>>58155832
I wish I took the screenshot of that one AMD anon who said that 480RX is the best selling card of 2016.
Everyday I hear the complaints.
>web has become so bloated
>so much waste and inneficientcy of web apps
Whatever happened to gopher?
>Gopher has been described by some enthusiasts as "faster and more efficient and so much more organised" than today's Web services. The Gopher protocol is still in use by enthusiasts, and although it has been almost entirely supplanted by the Web, a small population of actively maintained servers remains.
We need to bring back gopher
>>58155784
The day 4chan gets into Gopher will be my last day in the Web.
webassembly and websockets will be good maybe
>>58155784
Web had always it's two sides: source of knowledge and other content (I call it "Gopher" side), more or less organized and indexed by search engines. The other side, called by me "interactive", allows to communicate within web pages or on special platforms or protocols. Both sides have their pros and cons. Interesting for me is the influence that virtual realm makes on people in the 'real' world. Sometimes it is no longer possible to make a border between them; it's both fascinating and horrible. That's why I think that "Gopher" side of Internet is less dangerous and more 'comfy' to me.
>Nokia expands patent litigation against Apple in Asia, Europe and the US
https://www.nokia.com/en_int/news/releases/2016/12/22/nokia-expands-patent-litigation-against-apple-in-asia-europe-and-the-us
Apple is such a hypocrite:
Rockstar Consortium Inc., originally named Rockstar Bidco, is a consortium formed to negotiate licensing for patents acquired from the bankrupt multinational telecommunications and data networking equipment manufacturer Nortel. Members of the consortium are Apple Inc., BlackBerry, Ericsson, Microsoft, and Sony.
In 2012, Business Insider listed Rockstar as number 3 on its list of the 8 most fearsome patent trolls in industry. Wired magazine notes that some call them a "straight-up patent troll".
In October 2013, Rockstar had initiated legal action against eight companies, including Google, Huawei and Samsung, as well as other makers of Android phones including Asustek, HTC, LG Electronics, Pantech, and ZTE.
source: https://en.wikipedia.org/wiki/Rockstar_Consortium
Who cares I buy Samsung
what's a withing?
>>58156915
www.withings.com
What's the easiest, quickest, and most simple software to clone an hdd with and restore a clone with?
>>58155749
clonezilla
Clonezilla which is essentially a DD front end so both posters are right
My parents gave me a fitbit 2 for christmas, the thing is that it's completely useless to me! i do boxing so i will not be able to wear it (it would probably break); can i use it as a dressing accessory? will it look nerdy/retarded?
i am very grateful for the gift and i don't want to disappoint them by not wearing it.
they are the latest fad
ebay it while people actually want to buy them
>>58155647
Get a pebble 2
they're tougher than they look and fitbit has great customer service. i got my fitbit for free by telling their customer support that mine broke and they sent me a new one no questions asked i wear mine everyday. I've slammed it into shit unintentionally and abused the fuck out of mine working, only has a few scratches otherwise great. good to measure hr, steps, timer, and looks fairly nice
t. charge hr user