Hello. I would like to learn OpenGL 4 but I am pretty sure that my laptop does not support it. When I was learning DirectX 11 (which my laptop also does not support) before, there was a way to run it using software emulation. I am wondering if same also goes to OpenGL 4. If there is, how? and can you also point me to some great tutorials? Thanks!
Edit: I just checked. My laptop supports OpenGL 3.3. Do you guys think that it's better to just learn OpenGL 3.3, instead OpenGL 4?
- Viewing Profile: Topics: zee_ola05
Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics
Community Stats
- Group Members
- Active Posts 57
- Profile Views 1,768
- Member Title Member
- Age Age Unknown
- Birthday Birthday Unknown
-
Gender
Not Telling
109
Neutral
User Tools
Latest Visitors
Topics I've Started
How to make OpenGL 4 run on software
27 November 2012 - 07:47 PM
[Javascript] Catching Keyboard Input in GameLoop
28 January 2012 - 10:04 AM
Hello guys. I'm having a problem catching a keyboard input in Javascript. I've tried this before in a different language but I can't make it work in Javascript. I am trying to catch this type of keyboard input (I don't know what it's called)
Help me find what is wrong with my implementation (Please, I've been frustrated trying to debug this for hours). TIA! Here is my code:
if(prevKeyState.isDown(Key.X) && !currentKeyState.isDown(Key.X))
Help me find what is wrong with my implementation (Please, I've been frustrated trying to debug this for hours). TIA! Here is my code:
<!DOCTYPE html>
<html>
<head>
<title>Sample</title>
<script type="text/javascript" src="jquery-1.6.2.js"></script>
<script type="text/javascript">
$(document).ready(function(){
var Key = {
_pressed: {},
A: 97,
W: 119,
D: 100,
S: 115,
isDown: function(keyCode)
{
return this._pressed[keyCode];
},
onKeyDown: function(event)
{
this._pressed[event.keyCode] = true;
},
onKeyUp: function(event)
{
this._pressed[event.keyCode] = false;
}
};
window.addEventListener('keyup', function(event) { Key.onKeyUp(event); }, false);
window.addEventListener('keydown', function(event) { Key.onKeyDown(event); }, false);
var prevKeyboardState;
var currentKeyboardState = $.extend(true, {}, Key); //deep copy
function loop()
{
prevKeyboardState = currentKeyboardState;
currentKeyboardState = $.extend(true, {}, Key); //deep copy
if(prevKeyboardState.isDown(Key.A) && !currentKeyboardState.isDown(Key.A))
{
alert('true');
}
}
setInterval(loop,1000/60);
});
</script>
</head>
<body style="margin:0px; padding:0px;">
<canvas id="canvas" height="600px" width="800px">Your browser does not support HTML5 Canvas.</canvas>
</body>
</html>
- Home
- » Viewing Profile: Topics: zee_ola05

Find content