User Profile
Collapse
-
Ok im not smart, I got it all figured out. The calling function "glReadPixe ls" was on a different thread than that of the Device Context, So by Using SendMessage to the Main thread to Read the Pixels into a global buffer I was able to keep processing what needed to be in the thread. BOMB oh yeah, so Just a Lesson learned on calling function using variables on seprate threads. -
ok so i figured out that it was just cuz the buffers weren't being swapped, in the Programs loop, I don't know why this is but If some one could inform me on why this must be, for worth of intellegence, that'd be great. But now i have another problem, which is glReadPixels, I continute to Get an Invalid Operation Error when i've read documentation after documentation on what could cause this, no answers seem to come.
Im using this:...Leave a comment:
-
glDrawPixels
I've been searching and reading articles and examples for the past 2 weeks, but no luck.
Could some one please show me a good example of how to use the glDrawPixels Function to display pixels onto the screen with GL_FLOAT and GL_UNSIGNED_BYT E (using unsigned char) or just explain to me what I'm doing wrong. I've pasted my DrawScene Function Below.
Im trying to turn the 100 pixels to red, and display them
Code: -
Sorry for any confusion but InternetOpenURL is a function to access a internet file through HTTP, but i think i understand that what i want is impossible because there is no way of accessing a file with out going through the server (sucha as Apache, IIS, ect.) which would, in the end, execute the server file, but thanks for your inputLeave a comment:
-
I've been using InternetOpenURL as the function to access my server file, and been testing others with diffrent flags, i am i doing this right, or is this even possible?
Thank you, For your help
SilenctLeave a comment:
-
Accessing Serverside scripts pre-execution
Is there some way to use the WinInet API to access or read the exact data from a ASP or PHP file before it is "executed" so that the code of the original ASP or PHP file is there -
url post data
Hey everyone,
I've been looking, but can't find away to, have a php script redirect to another url with POST data, like form, to it. -
OK finaly, after restarting PHP and the Server, and using the ini_set function instead of gonig into the php file, i've been able to get every function to work correctly. Thank you, however, i've used the functions to crop a portion of the source image, put the outcome is black, any solutions? Nope got it however thank you all for running me throught my problem, especially pbmods for stating that all i needed to do was reinstall php.Leave a comment:
-
Alright i restarted my server and php, and now that memory error came up, should i change the memory_limit?Leave a comment:
-
-
Ya, im getting an error saying that imagecreatefrom jpeg isn't defined, so i need to know what to add so i can get it working.Leave a comment:
-
Hey thanks for that, i think. I reinstalled php with gd but i don't know what do do now. It still isn't working, what else am i missing?Leave a comment:
-
How would i compile PHP, and were would i get the source code.Leave a comment:
-
It already is php_gd2.dll, plus, i don't think i have that fileLeave a comment:
-
-
It never prompted me with the option for gd support, so how would i set it upLeave a comment:
-
ok i figured out the php info, and it is indicating that it is shared, i don't know whether or not that means it is enabled thoughLeave a comment:
-
that code doesn't do anything, maybe im missing somthing for that. How would i know it is enabled, is it in the ini file i've already uncommented the php_gd.dll line.Leave a comment:
-
ok, i don't know why that would, help but right now i looks like so
Code:<?php $img = getimagesize($file); switch($img[2]) { case 1: $image = imagecreatefromgif($file); break; case 2: $image = imagecreatefromjpeg($file); break; case 3: $image = imagecreatefrompng($file); break; default: echo
Leave a comment:
-
Well im using a Personal Computer, i know about GD but how do i use it with PHPLeave a comment:
No activity results to display
Show More
Leave a comment: